Merge pull request #20708 from overleaf/ii-bs5-pdf-toolbar
[web] BS5 pdf toolbar GitOrigin-RevId: a04091c9e936e52f47c3977b3149ffe613d43bb9
This commit is contained in:
@@ -53,7 +53,7 @@ const TextButton: FC<{
|
||||
return (
|
||||
<OLButton
|
||||
onClick={handleClick}
|
||||
size="small"
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
className="copy-button"
|
||||
bs3Props={{ bsSize: 'xsmall' }}
|
||||
|
||||
@@ -25,7 +25,7 @@ export default function useDropdown(defaultOpen = false) {
|
||||
|
||||
// handle dropdown toggle
|
||||
const handleToggle = useCallback(value => {
|
||||
setOpen(value)
|
||||
setOpen(Boolean(value))
|
||||
}, [])
|
||||
|
||||
// close the dropdown on click outside the dropdown
|
||||
|
||||
Reference in New Issue
Block a user