-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(ui-ux): address book ui for transfer domain (#4042)
* feature(ui-ux): address book UI for transfer domain * feature(ui-ux): address book bottom sheet in portfolio page * update comment * remove eslint-disable-next-line react-hooks/exhaustive-deps * feat(ui-ux): standardize evm tag UI across screens * feat(ui-ux): display address label * fix(ui-ux): remove caret if not from send screen * chore: update package * fix: lint for address row
- Loading branch information
Showing
10 changed files
with
483 additions
and
252 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { tailwind } from "@tailwind"; | ||
import { LinearGradient } from "expo-linear-gradient"; | ||
|
||
export function AddressEvmTag({ | ||
children, | ||
customStyle, | ||
testID, | ||
}: { | ||
children: React.ReactElement; | ||
customStyle?: string; | ||
testID: string; | ||
}): JSX.Element { | ||
return ( | ||
<LinearGradient | ||
colors={["#02cf9240", "#3b57cf40"]} | ||
start={[0, 0]} | ||
end={[1, 1]} | ||
style={tailwind( | ||
"rounded-lg px-2 py-0.5 ml-1 flex flex-row items-center", | ||
customStyle, | ||
)} | ||
testID={`${testID}_evm_tag`} | ||
> | ||
{children} | ||
</LinearGradient> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { tailwind } from "@tailwind"; | ||
import { Text } from "@components/Text"; | ||
import { LinearGradient } from "expo-linear-gradient"; | ||
|
||
export function EvmTag({ | ||
text = "EVM", | ||
index, | ||
testIDSuffix, | ||
}: { | ||
text?: string; | ||
index: number; | ||
testIDSuffix: string; | ||
}): JSX.Element { | ||
return ( | ||
<LinearGradient | ||
colors={["#42F9C2", "#3B57CF"]} | ||
start={[0, 0]} | ||
end={[1, 1]} | ||
style={tailwind("rounded-sm-v2 px-1.5 py-1 ml-1")} | ||
> | ||
<Text | ||
testID={`address_row_label_${index}_${testIDSuffix}_EVM_tag`} | ||
style={tailwind( | ||
"text-mono-light-v2-00 text-2xs font-semibold-v2 leading-3", | ||
)} | ||
> | ||
{text} | ||
</Text> | ||
</LinearGradient> | ||
); | ||
} |
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.