fix(ui): fix couple ui bugs
This commit is contained in:
parent
0c4b6ab6f0
commit
43f52a9dcd
2 changed files with 2 additions and 5 deletions
|
|
@ -27,9 +27,6 @@ function DashboardEditModal(props: Props) {
|
|||
}, [])
|
||||
|
||||
const write = ({ target: { value, name } }) => dashboard.update({ [ name ]: value })
|
||||
const writeOption = (e, { checked, name }) => {
|
||||
dashboard.update({ [name]: checked });
|
||||
}
|
||||
|
||||
return useObserver(() => (
|
||||
<Modal open={ show }>
|
||||
|
|
@ -80,7 +77,7 @@ function DashboardEditModal(props: Props) {
|
|||
className="font-medium mr-3"
|
||||
type="checkbox"
|
||||
checked={ dashboard.isPublic }
|
||||
onClick={ writeOption }
|
||||
onClick={ () => dashboard.update({ 'isPublic': !dashboard.isPublic }) }
|
||||
/>
|
||||
<div className="flex items-center cursor-pointer" onClick={ () => dashboard.update({ 'isPublic': !dashboard.isPublic }) }>
|
||||
<Icon name="user-friends" size="16" />
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ function SavedSearchModal(props: Props) {
|
|||
</div>
|
||||
)}
|
||||
{shownItems.map(item => (
|
||||
<div key={item.key} className="p-4 pb-10 cursor-pointer border-b flex items-center group hover:bg-active-blue" onClick={(e) => onClick(item, e)}>
|
||||
<div key={item.key} className={cn("p-4 cursor-pointer border-b flex items-center group hover:bg-active-blue", item.isPublic && 'pb-10')} onClick={(e) => onClick(item, e)}>
|
||||
<Icon name="search" color="gray-medium" size="16" />
|
||||
<div className="ml-4">
|
||||
<div className="text-lg">{item.name} </div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue