fix(ui): small ui fixes and improvements (#550)
This commit is contained in:
parent
0ef43a30fd
commit
ee373cc0b4
4 changed files with 14 additions and 5 deletions
|
|
@ -12,14 +12,14 @@ const CountryFlag = React.memo(({ country, className, style = {}, label = false
|
|||
return (
|
||||
<div className="flex items-center" style={style}>
|
||||
{knownCountry
|
||||
? <div className={ cn(`mr-1 flag flag-${ countryFlag }`, className, stl.default) } />
|
||||
? <div className={ cn(`flag flag-${ countryFlag }`, className, stl.default) } />
|
||||
: (
|
||||
<div className="flex items-center w-full">
|
||||
<Icon name="flag-na" size="22" className="" />
|
||||
<div className="ml-2 leading-none" style={{ whiteSpace: 'nowrap'}}>Unknown Country</div>
|
||||
</div>
|
||||
)}
|
||||
{ knownCountry && label && <div className={ stl.label }>{ countryName }</div> }
|
||||
{ knownCountry && label && <div className={ cn(stl.label, 'ml-1') }>{ countryName }</div> }
|
||||
</div>
|
||||
);
|
||||
})
|
||||
|
|
|
|||
|
|
@ -61,9 +61,9 @@ export default class ItemMenu extends React.PureComponent {
|
|||
<div
|
||||
key={ text }
|
||||
onClick={ !disabled ? this.onClick(onClick) : () => {} }
|
||||
className={disabled ? 'cursor-not-allowed' : ''}
|
||||
role="menuitem"
|
||||
tabIndex="-1"
|
||||
className=""
|
||||
>
|
||||
<Popup
|
||||
delay={500}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,4 @@ module.exports = {
|
|||
"Shared/*": path.resolve(__dirname, "app/components/shared/*"),
|
||||
"Player": path.resolve(__dirname, "app/player"),
|
||||
"Player/*": path.resolve(__dirname, "app/player/*"),
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -15,6 +15,15 @@
|
|||
"noEmit": true,
|
||||
"jsx": "react",
|
||||
// "baseUrl": ".",
|
||||
"paths": {
|
||||
"Shared/*": ["./app/components/shared/*"],
|
||||
"App/*": ["./app/*"],
|
||||
"Components/*": ["./app/components/*"],
|
||||
"UI/*": ["./app/components/ui/*"],
|
||||
"UI": ["./app/components/ui"],
|
||||
"Player/*": ["./app/player/*"],
|
||||
"HOCs/*": ["./app/components/hocs/*"]
|
||||
}
|
||||
},
|
||||
"include": ["app"]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue