-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sheets] [Pt. 2] Remove a bunch of now-unnecessary things #5560
Conversation
|
6296f5e
to
6dec099
Compare
if (isWeb) { | ||
openDialogs.current.forEach(id => { | ||
const dialog = activeDialogs.current.get(id) | ||
if (dialog) dialog.current.close() | ||
}) | ||
|
||
return openDialogs.current.size > 0 | ||
} else { | ||
// @TODO DIALOGS REFACTOR | ||
console.error('HAILEY FIX THIS 🥺📋') | ||
return false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still need to come back to this. I believe this will be unnecessary now (on all platforms?) since my understanding is it was used to fix the android back button (which is just handled natively now, no need for us to pay attention to it.)
@@ -22,8 +22,6 @@ type Props = { | |||
export const ImageAltTextDialog = (props: Props): React.ReactNode => { | |||
return ( | |||
<Dialog.Outer control={props.control}> | |||
<Dialog.Handle /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing all Handle
s, because the native dialog includes a handle on both platforms.
// @TODO DIALOG REFACTOR - can i get rid of this? seems pointless tbh | ||
const [isOpen, setIsOpen] = React.useState(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ended up getting removed later since it isn't useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not leave it in a working state (missing snapPoints), but that's fine
Dialog.Handle
uses