Skip to content
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

Merged
merged 6 commits into from
Oct 2, 2024

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented Oct 1, 2024

  • remove
  • close all dialogs
  • remove a bunch of to-be-useless stuff
  • remove Dialog.Handle uses
  • rm handle component
  • type

Copy link

github-actions bot commented Oct 1, 2024

Old size New size Diff
7.9 MB 7.9 MB 0 B (0.00%)

Comment on lines +46 to +57
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
}
Copy link
Contributor Author

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 />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing all Handles, because the native dialog includes a handle on both platforms.

Comment on lines +44 to +45
// @TODO DIALOG REFACTOR - can i get rid of this? seems pointless tbh
const [isOpen, setIsOpen] = React.useState(false)
Copy link
Contributor Author

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.

@mozzius mozzius mentioned this pull request Oct 2, 2024
Copy link
Member

@mozzius mozzius left a 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

@arcalinea arcalinea temporarily deployed to hailey/dialogs-pt2 - social-app PR #5560 October 2, 2024 20:51 — with Render Destroyed
@haileyok haileyok merged commit a2e8f3c into hailey/dialogs-pt1 Oct 2, 2024
6 checks passed
@haileyok haileyok deleted the hailey/dialogs-pt2 branch October 2, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants