Skip to content

Commit

Permalink
change sign in to create account
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius committed Jan 8, 2025
1 parent 7c8c78b commit a382845
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/view/shell/NavSignupCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ let NavSignupCard = ({}: {}): React.ReactNode => {
<View style={[a.flex_row, a.flex_wrap, a.gap_sm, a.pt_md]}>
<Button
onPress={showCreateAccount}
label={_(msg`Sign up`)}
label={_(msg`Create account`)}
size="small"
variant="solid"
color="primary">
<ButtonText>
<Trans>Sign up</Trans>
<Trans>Create account</Trans>
</ButtonText>
</Button>
<Button
Expand Down
30 changes: 16 additions & 14 deletions src/view/shell/bottom-bar/BottomBarWeb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ import {useUnreadNotifications} from '#/state/queries/notifications/unread'
import {useSession} from '#/state/session'
import {useLoggedOutViewControls} from '#/state/shell/logged-out'
import {useCloseAllActiveElements} from '#/state/util'
import {Button} from '#/view/com/util/forms/Button'
import {Link} from '#/view/com/util/Link'
import {Text} from '#/view/com/util/text/Text'
import {Logo} from '#/view/icons/Logo'
import {Logotype} from '#/view/icons/Logotype'
import {atoms as a, useTheme} from '#/alf'
import {Button, ButtonText} from '#/components/Button'
import {
Bell_Filled_Corner0_Rounded as BellFilled,
Bell_Stroke2_Corner0_Rounded as Bell,
Expand All @@ -40,6 +39,7 @@ import {
UserCircle_Filled_Corner0_Rounded as UserCircleFilled,
UserCircle_Stroke2_Corner0_Rounded as UserCircle,
} from '#/components/icons/UserCircle'
import {Text} from '#/components/Typography'
import {styles} from './BottomBarStyles'

export function BottomBarWeb() {
Expand Down Expand Up @@ -196,24 +196,26 @@ export function BottomBarWeb() {
</View>
</View>

<View style={{flexDirection: 'row', alignItems: 'center', gap: 8}}>
<View style={[a.flex_row, a.flex_wrap, a.gap_sm]}>
<Button
onPress={showCreateAccount}
accessibilityHint={_(msg`Sign up`)}
accessibilityLabel={_(msg`Sign up`)}>
<Text type="md" style={[{color: 'white'}, a.font_bold]}>
<Trans>Sign up</Trans>
</Text>
label={_(msg`Create account`)}
size="small"
variant="solid"
color="primary">
<ButtonText>
<Trans>Create account</Trans>
</ButtonText>
</Button>

<Button
type="default"
onPress={showSignIn}
accessibilityHint={_(msg`Sign in`)}
accessibilityLabel={_(msg`Sign in`)}>
<Text type="md" style={[t.atoms.text, a.font_bold]}>
label={_(msg`Sign in`)}
size="small"
variant="solid"
color="secondary">
<ButtonText>
<Trans>Sign in</Trans>
</Text>
</ButtonText>
</Button>
</View>
</View>
Expand Down

0 comments on commit a382845

Please sign in to comment.