-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ feat(Add): Add new button * 💄 Polishing
- Loading branch information
1 parent
ee72cb2
commit 9340f72
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
apps/ledger-live-mobile/src/components/Nft/AddNewItemList.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,48 @@ | ||
import { Flex, Icons, Box, Text } from "@ledgerhq/native-ui"; | ||
import React from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import { RectButton } from "react-native-gesture-handler"; | ||
import styled, { useTheme } from "styled-components/native"; | ||
|
||
const StyledBox = styled(Box)` | ||
background-color: ${props => props.theme.colors.background.main}; | ||
margin-bottom: 8; | ||
border-radius: 4; | ||
width: 160; | ||
height: 160; | ||
border-width: 1; | ||
border-color: ${props => props.theme.colors.neutral.c60}; | ||
`; | ||
|
||
export const AddNewItem = () => { | ||
const { colors } = useTheme(); | ||
const { t } = useTranslation(); | ||
return ( | ||
<StyledBox | ||
flexDirection="column" | ||
alignItems="center" | ||
justifyContent="center" | ||
borderStyle="dashed" | ||
> | ||
<RectButton onPress={() => console.log("Add new NFT")}> | ||
<Flex | ||
flexDirection="column" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Icons.PlusMedium size={24} color={colors.neutral.c100} /> | ||
<Text | ||
variant="body" | ||
fontWeight="semiBold" | ||
color={colors.neutral.c100} | ||
mt={2} | ||
fontSize={14} | ||
lineHeight="18px" | ||
> | ||
{t("nft.gallery.addNew")} | ||
</Text> | ||
</Flex> | ||
</RectButton> | ||
</StyledBox> | ||
); | ||
}; |
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