mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
fix: improve seletRegionBox (#266)
Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
@ -38,7 +38,7 @@ class ProviderTable extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addRow(table) {
|
addRow(table) {
|
||||||
let row = {name: "Please select a provider", canSignUp: false, canSignIn: true, canUnlink: true, alertType: "None"};
|
let row = {name: "Please select a provider", canSignUp: true, canSignIn: true, canUnlink: true, alertType: "None"};
|
||||||
if (table === undefined) {
|
if (table === undefined) {
|
||||||
table = [];
|
table = [];
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,8 @@ class SelectRegionBox extends React.Component {
|
|||||||
{
|
{
|
||||||
Setting.CountryRegionData.map((item, index) => (
|
Setting.CountryRegionData.map((item, index) => (
|
||||||
<Option key={index} value={item.name} label={item.name} >
|
<Option key={index} value={item.name} label={item.name} >
|
||||||
<img src={`${Setting.StaticBaseUrl}/flag-icons/${item.code}.svg`} alt={item.name} height={20} />{" "}
|
<img src={`${Setting.StaticBaseUrl}/flag-icons/${item.code}.svg`} alt={item.name} height={20} style={{marginRight: 10}}/>
|
||||||
{item.name}
|
{`${item.name} (${item.code})`}
|
||||||
</Option>
|
</Option>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user