-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(FOROME-933): use PopperButton for open conditions options popup
- Loading branch information
1 parent
68706a0
commit d18df5f
Showing
5 changed files
with
71 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/pages/filter/refiner/components/right-column/condition-modal-options-button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ReactElement } from 'react' | ||
|
||
import { Button } from '@ui/button' | ||
import { Icon } from '@ui/icon' | ||
|
||
interface IProps { | ||
refEl: any | ||
onClick?: () => void | ||
} | ||
|
||
export const ConditionModalOptionsButton = ({ | ||
refEl, | ||
...rest | ||
}: IProps): ReactElement => { | ||
return ( | ||
<Button | ||
refEl={refEl} | ||
onClick={rest.onClick} | ||
className="bg-transparent hover:bg-transparent active:bg-transparent" | ||
append={ | ||
<Icon | ||
name="Options" | ||
className="cursor-pointer text-blue-bright" | ||
stroke={false} | ||
/> | ||
} | ||
onMouseUp={e => e.stopPropagation()} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters