Skip to content

Commit

Permalink
remove old contact passing strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
latter-bolden committed May 31, 2024
1 parent edec615 commit 88961c5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/tlon-mobile/src/components/AddGroupSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ interface AddGroupActions {
}) => void;
onScrollChange: (scrolling: boolean) => void;
screenKey?: number;
contacts?: db.Contact[] | null;
}
const ActionContext = createContext<AddGroupActions>({} as AddGroupActions);

Expand Down Expand Up @@ -123,7 +122,6 @@ export default function AddGroupSheet({
onCreatedGroup,
onScrollChange: setScreenScrolling,
screenKey,
contacts,
}}
>
<Stack.Navigator
Expand Down Expand Up @@ -177,7 +175,7 @@ function ScreenWrapper({
}

function RootScreen(props: NativeStackScreenProps<StackParamList, 'Root'>) {
const { onScrollChange, screenKey, contacts } = useContext(ActionContext);
const { onScrollChange, screenKey } = useContext(ActionContext);
const insets = useSafeAreaInsets();
const onSelect = useCallback(
(contactId: string) => {
Expand All @@ -190,9 +188,6 @@ function RootScreen(props: NativeStackScreenProps<StackParamList, 'Root'>) {

return (
<ScreenWrapper withoutSafe>
{/* Unclear why we have to render another contacts provider here, but the screen context shows up empty */}
{/* on Android? */}
{/* <ContactsProvider contacts={contacts ?? null}> */}
<YStack flex={1} gap="$xl">
<ContactBook
searchable
Expand All @@ -207,7 +202,6 @@ function RootScreen(props: NativeStackScreenProps<StackParamList, 'Root'>) {
</Button>
</View>
</YStack>
{/* </ContactsProvider> */}
</ScreenWrapper>
);
}
Expand Down

0 comments on commit 88961c5

Please sign in to comment.