Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hailey/dialogs-pt1' into hailey/…
Browse files Browse the repository at this point in the history
…dialogs-pt7
  • Loading branch information
haileyok committed Oct 2, 2024
2 parents 87c83dd + 0ed5d48 commit cca6637
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/components/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export function Outer({
const insets = useSafeAreaInsets()
const closeCallbacks = React.useRef<(() => void)[]>([])
const {setDialogIsOpen} = useDialogStateControlContext()
// @TODO DIALOG REFACTOR - can i get rid of this? seems pointless tbh

const callQueuedCallbacks = React.useCallback(() => {
for (const cb of closeCallbacks.current) {
Expand Down Expand Up @@ -83,20 +82,12 @@ export function Outer({
[open, close],
)

// @TODO DIALOG REFACTOR - what is this? rm i think?
// React.useEffect(() => {
// return () => {
// setDialogIsOpen(control.id, false)
// }
// }, [control.id, setDialogIsOpen])

const context = React.useMemo(() => ({close}), [close])

return (
<Portal>
<Context.Provider value={context}>
<BlueskyBottomSheetView
// handleIndicatorStyle={{backgroundColor: t.palette.primary_500}} // @TODO DIALOG REFACTOR need to add this to lib!*/
ref={ref}
topInset={30}
bottomInset={insets.bottom}
Expand Down
4 changes: 0 additions & 4 deletions src/components/Dialog/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,6 @@ export const InnerFlatList = React.forwardRef<
)
})

export function Handle() {
return null
}

export function Close() {
const {_} = useLingui()
const {close} = React.useContext(Context)
Expand Down

0 comments on commit cca6637

Please sign in to comment.