Skip to content

Commit

Permalink
chore: css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Jul 30, 2024
1 parent 7378584 commit 8575d24
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions app/screens/settings-screen/account/banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* If the user isn't logged in, it shows Login or Create Account
* Later on, this will support switching between accounts
*/
import { TouchableOpacity, View } from "react-native"
import { TouchableWithoutFeedback } from "react-native-gesture-handler"
import { View } from "react-native"
import { TouchableWithoutFeedback, TouchableOpacity } from "react-native-gesture-handler"

import { GaloyIcon } from "@app/components/atomic/galoy-icon"
import { useSettingsScreenQuery } from "@app/graphql/generated"
Expand Down Expand Up @@ -49,10 +49,12 @@ export const AccountBanner = () => {
}
>
<View style={styles.outer}>
<AccountIcon size={30} />
<Text type="p2">
{isUserLoggedIn ? usernameTitle : LL.SettingsScreen.logInOrCreateAccount()}
</Text>
<View style={styles.inner}>
<AccountIcon size={30} />
<Text type="p2">
{isUserLoggedIn ? usernameTitle : LL.SettingsScreen.logInOrCreateAccount()}
</Text>
</View>
{isUserLoggedIn && (
<TouchableOpacity style={styles.switch} onPress={handleSwitchPress}>
<GaloyIcon name="switch" size={20} color={colors.primary} />
Expand All @@ -74,13 +76,19 @@ export const AccountIcon: React.FC<{ size: number }> = ({ size }) => {
}

const useStyles = makeStyles(() => ({
inner: {
display: "flex",
flexDirection: "row",
alignItems: "center",
columnGap: 12,
},
outer: {
height: 70,
padding: 4,
display: "flex",
flexDirection: "row",
alignItems: "center",
columnGap: 12,
justifyContent: "space-between",
},
switch: {
display: "flex",
Expand Down

0 comments on commit 8575d24

Please sign in to comment.