-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GAL-4095] [GAL-4114] Enable Sign Up with Wallet (#1855)
* Make button text optional * Add dependency * Add connect wallet button * Disconnect wallet when logout * eth icon support sizing * Add wallet selection * Add sign in bottom sheet * Bottom sheet row support icon * Move createNonce to shared * removed unused file * lint shared * prettier * add try catch block * set loading false * Add dark mode + icons * fix loading state * turn off onboarding flag * rename heading * Add loading signature state * Update metadata * consolidate email icon * update border on dark mode * update spinner on dark mode * reset state on dismiss * handle reject signature * Add username screen * Add profile bio onboarding screen * move util to shared * Update shared path on web * Add check username logic * move update update user hooks to shared * Move bio count to shared * navigate to bio screen * able to set pfp n add sync * Fix typecheck path * Add welcome bottom sheet * Remove toast * Add curated direction props * show welcome bottom for new user * lint * fix fetch user profile after signed up * fix shifted button * standardize error state * Add event tracker * remove console * Rename the copywriting * Added comment to remove manual sync * If created user, able to update username * fix typo
- Loading branch information
1 parent
417ea67
commit 2ada6b3
Showing
25 changed files
with
626 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { useEffect, useMemo, useRef } from 'react'; | ||
import { View } from 'react-native'; | ||
|
||
import { Button } from './Button'; | ||
import { | ||
GalleryBottomSheetModal, | ||
GalleryBottomSheetModalType, | ||
} from './GalleryBottomSheet/GalleryBottomSheetModal'; | ||
import { Typography } from './Typography'; | ||
|
||
type Props = { | ||
username: string; | ||
}; | ||
|
||
export function WelcomeNewUser({ username }: Props) { | ||
const snapPoints = useMemo(() => [360], []); | ||
const bottomSheetRef = useRef<GalleryBottomSheetModalType>(null); | ||
useEffect(() => bottomSheetRef.current?.present(), []); | ||
|
||
return ( | ||
<GalleryBottomSheetModal ref={bottomSheetRef} index={0} snapPoints={snapPoints}> | ||
<View className="flex flex-column space-y-8 mx-4 mt-2"> | ||
<View className="space-y-6"> | ||
<View> | ||
<Typography | ||
className="text-3xl text-center" | ||
font={{ family: 'GTAlpina', weight: 'StandardLight' }} | ||
> | ||
Welcome to your feed, | ||
</Typography> | ||
<Typography | ||
className="text-3xl text-center" | ||
font={{ family: 'GTAlpina', weight: 'StandardLight' }} | ||
> | ||
{username}! | ||
</Typography> | ||
</View> | ||
<Typography className="text-center" font={{ family: 'ABCDiatype', weight: 'Regular' }}> | ||
This is where you'll see what people are collecting, creating and sharing. Choose 'For | ||
You' for tailored content or 'Following' to see what your connections are up to! | ||
</Typography> | ||
</View> | ||
|
||
<Button | ||
onPress={() => bottomSheetRef.current?.dismiss()} | ||
text="continue" | ||
eventElementId="welcome-bottom-sheet-continue" | ||
eventName="welcome-bottom-sheet-continue" | ||
/> | ||
</View> | ||
</GalleryBottomSheetModal> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.