-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support(UI): Update text and ui for Add Account modal (#1277)
* support(UI): Update text and ui for Add Account modal * 💄 Add margin bottom
- Loading branch information
1 parent
20f3ec7
commit 11d5917
Showing
4 changed files
with
75 additions
and
35 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,5 @@ | ||
--- | ||
"live-mobile": patch | ||
--- | ||
|
||
Update text and ui for Add Account modal |
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
40 changes: 40 additions & 0 deletions
40
apps/ledger-live-mobile/src/screens/AddAccounts/AddAccountsModalCard.tsx
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,40 @@ | ||
import React from "react"; | ||
import { ImageSourcePropType } from "react-native"; | ||
import Illustration from "../../images/illustration/Illustration"; | ||
import DiscoverCard from "../Discover/DiscoverCard"; | ||
|
||
type Props = { | ||
title: string; | ||
subTitle: string; | ||
onPress: () => void; | ||
imageSource: ImageSourcePropType; | ||
hasMarginBottom?: boolean; | ||
}; | ||
export default function AddAccountsModalCard({ | ||
title, | ||
subTitle, | ||
onPress, | ||
imageSource, | ||
hasMarginBottom = false, | ||
}: Props) { | ||
return ( | ||
<DiscoverCard | ||
title={title} | ||
titleProps={{ variant: "large" }} | ||
subTitle={subTitle} | ||
subTitleProps={{ variant: "paragraph" }} | ||
onPress={onPress} | ||
cardProps={{ | ||
mx: 0, | ||
mb: hasMarginBottom ? "16px" : 0, | ||
}} | ||
Image={ | ||
<Illustration | ||
size={130} | ||
darkSource={imageSource} | ||
lightSource={imageSource} | ||
/> | ||
} | ||
/> | ||
); | ||
} |