Skip to content

Commit

Permalink
the pic looks much better!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed Sep 5, 2023
1 parent 7f97588 commit 0c901bd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/screens/SettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ const SettingsScreen = () => {
hair: ["long04", "short06"],
hairColor: ["85c2c6"],
hairProbability: 100,
}).toString();
});

const avatarStyle =
avatar.toJson().extra.hair === "long04"
? { marginTop: -10, marginLeft: 2 }
: { marginTop: 7 };

const signOut = () => {
messageAlertShower("Are you sure?", "You can always sign back in", [
Expand Down Expand Up @@ -161,7 +166,10 @@ const SettingsScreen = () => {
: "bg-white"
} h-[120px] w-[120px]`}
>
<SvgXml xml={avatar} style={{ marginTop: 7 }} />
<SvgXml
xml={avatar.toString()}
style={avatarStyle}
/>
</View>
</TouchableOpacity>
</View>
Expand Down

0 comments on commit 0c901bd

Please sign in to comment.