-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(navigation): Add Profile / Menu Screen (#5028)
### Description Adds new profile screen for navigation redesign, currently not hooked up to anything, ### Test plan Unit tests added **Manual Tests** Name + PN: ![Simulator Screenshot - iPhone 14 Pro - 2024-03-08 at 13 49 30](https://github.com/valora-inc/wallet/assets/140328381/41584177-72d0-4b62-a6ef-08fd5511ae8d) Name but no PN: ![no-pn](https://github.com/valora-inc/wallet/assets/140328381/5a87069e-4b6b-4c08-a000-06601bb41958) PN but no name: ![no-name](https://github.com/valora-inc/wallet/assets/140328381/fec1ea15-8782-4958-8aba-c76a27fa717a) No PN or name: ![no-pn-no-name](https://github.com/valora-inc/wallet/assets/140328381/98f536fb-7a4c-44f1-b514-e22de55ef9dd) ### Related issues - Fixes [ACT-1107](https://linear.app/valora/issue/ACT-1107/profile-menu-screen) ### Backwards compatibility Yes, just adding new screen ### Network scalability If a new NetworkId and/or Network are added in the future, the changes in this PR will: - [X] Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)
- Loading branch information
1 parent
4d484cf
commit 755eb68
Showing
21 changed files
with
399 additions
and
58 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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
import * as React from 'react' | ||
import Svg, { Circle, Path } from 'react-native-svg' | ||
import Colors from 'src/styles/colors' | ||
|
||
export function Help() { | ||
interface Props { | ||
color?: string | ||
} | ||
|
||
export function Help({ color }: Props) { | ||
return ( | ||
<Svg testID="Help" width={32} height={32} viewBox="0 0 32 32" fill="none"> | ||
<Circle cx={16} cy={16} r={11} stroke="#B4B9BD" strokeWidth={2} /> | ||
<Circle cx={16} cy={16} r={11} stroke={color} strokeWidth={2} /> | ||
<Path | ||
d="M15.753 19.546a.845.845 0 01-.836-.807c-.02-.482-.023-.962.123-1.415.17-.53.412-.959.726-1.287a5.91 5.91 0 011.13-.907c.395-.248.726-.574.995-.977.27-.403.404-.883.404-1.441 0-.46-.103-.858-.31-1.195a2.113 2.113 0 00-.827-.78 2.42 2.42 0 00-1.15-.275c-.367 0-.721.08-1.062.24-.341.159-.626.41-.854.752a2.136 2.136 0 00-.26.555c-.134.43-.488.787-.938.787-.487 0-.886-.41-.777-.885a3.616 3.616 0 011.908-2.461c.596-.3 1.257-.45 1.983-.45.79 0 1.476.164 2.058.492a3.44 3.44 0 011.359 1.35c.323.572.484 1.223.484 1.954 0 .778-.166 1.444-.498 1.997a4.205 4.205 0 01-1.385 1.392c-.395.258-.71.53-.948.816-.238.28-.41.616-.518 1.005-.066.24-.069.486-.053.734a.746.746 0 01-.754.806z" | ||
fill="#B4B9BD" | ||
fill={color} | ||
/> | ||
<Circle cx={15.735} cy={22.099} r={1.098} fill="#B4B9BD" /> | ||
<Circle cx={15.735} cy={22.099} r={1.098} fill={color} /> | ||
</Svg> | ||
) | ||
} | ||
|
||
Help.defaultProps = { | ||
color: Colors.gray3, | ||
} | ||
|
||
export default React.memo(Help) |
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 |
---|---|---|
@@ -1,27 +1,31 @@ | ||
import * as React from 'react' | ||
import Svg, { Circle, Path } from 'react-native-svg' | ||
import Colors from 'src/styles/colors' | ||
|
||
export function Settings() { | ||
interface Props { | ||
color?: string | ||
} | ||
|
||
export function Settings({ color }: Props) { | ||
return ( | ||
<Svg testID="Settings" width={32} height={32} viewBox="0 0 32 32" fill="none"> | ||
<Path | ||
d="M17 8.5H7.5a1.5 1.5 0 100 3H17v-3z" | ||
fill="#B4B9BD" | ||
stroke="#B4B9BD" | ||
strokeWidth={2} | ||
/> | ||
<Path d="M14 24.5h9a2 2 0 002-2v0a2 2 0 00-2-2h-9" stroke="#B4B9BD" strokeWidth={2} /> | ||
<Circle cx={21.5} cy={9.5} r={4.5} stroke="#B4B9BD" strokeWidth={2} /> | ||
<Path d="M17 8.5H7.5a1.5 1.5 0 100 3H17v-3z" fill={color} stroke={color} strokeWidth={2} /> | ||
<Path d="M14 24.5h9a2 2 0 002-2v0a2 2 0 00-2-2h-9" stroke={color} strokeWidth={2} /> | ||
<Circle cx={21.5} cy={9.5} r={4.5} stroke={color} strokeWidth={2} /> | ||
<Circle | ||
cx={10.5} | ||
cy={22.5} | ||
r={4.5} | ||
transform="rotate(-180 10.5 22.5)" | ||
stroke="#B4B9BD" | ||
stroke={color} | ||
strokeWidth={2} | ||
/> | ||
</Svg> | ||
) | ||
} | ||
|
||
Settings.defaultProps = { | ||
color: Colors.gray3, | ||
} | ||
|
||
export default React.memo(Settings) |
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.