Skip to content

Commit

Permalink
✨ feat(Add): Add new button (#1449)
Browse files Browse the repository at this point in the history
* ✨ feat(Add): Add new button

* 💄 Polishing
  • Loading branch information
mcayuelas-ledger authored Oct 4, 2022
1 parent ee72cb2 commit 9340f72
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
48 changes: 48 additions & 0 deletions apps/ledger-live-mobile/src/components/Nft/AddNewItemList.tsx
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>
);
};
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/src/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -5060,7 +5060,8 @@
"seeFewerNfts": "See fewer NFT"
},
"gallery": {
"allNft": "All NFT"
"allNft": "All NFT",
"addNew": "Add new"
},
"viewer": {
"properties": "Properties",
Expand Down

0 comments on commit 9340f72

Please sign in to comment.