Skip to content

Commit

Permalink
fix: upd. header title address book screen
Browse files Browse the repository at this point in the history
  • Loading branch information
zheleznov163 committed Jun 14, 2022
1 parent aab72b2 commit 24d8ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
4 changes: 2 additions & 2 deletions screens/Profile/AddressBookScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default observer<Props>(function AddressBookScreen({ navigation }) {
<Header
onPressBack={goBack}
style={[styles.header, styles.wrapper]}
title="Wallet Connect"
title="Address Book"
onPressScan={() => {}}
/>
<View style={[styles.wrapper, { flex: 1 }]}>
Expand Down Expand Up @@ -121,7 +121,7 @@ const Header = ({ onPressBack, style, title, onPressScan }: PropsHeader) => (
<View style={styles.header_right}>
<View style={styles.header_scanButtonContainer}>
<RectButton style={styles.header_scanButton} onPress={onPressScan}>
<Icon2 name="scan_2" size={18} stroke={COLOR.White} />
<Icon2 name="plus" size={18} stroke={COLOR.White} />
</RectButton>
</View>
</View>
Expand Down
22 changes: 1 addition & 21 deletions screens/Profile/WalletConnectScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,26 +107,6 @@ export default observer<Props>(function WalletConnect({ navigation }) {
);
});

type CircleProps = {
children: React.ReactNode;
size: number;
opacity?: number;
};

const Circle = ({ children, size, opacity = 1 }: CircleProps) => (
<View
style={{
width: size,
height: size,
borderRadius: size,
backgroundColor: hexAlpha("#737ae2", opacity * 100),
alignItems: "center",
justifyContent: "center",
}}
>
{children}
</View>
);
type PropsHeader = {
onPressBack(): void;
onPressScan(): void;
Expand All @@ -145,7 +125,7 @@ const Header = ({ onPressBack, style, title, onPressScan }: PropsHeader) => (
<View style={styles.header_right}>
<View style={styles.header_scanButtonContainer}>
<RectButton style={styles.header_scanButton} onPress={onPressScan}>
<Icon2 name="plus" size={20} stroke={COLOR.White} />
<Icon2 name="scan_2" size={20} stroke={COLOR.White} />
</RectButton>
</View>
</View>
Expand Down

0 comments on commit 24d8ad1

Please sign in to comment.