mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
* Changes to nfts-detection-notice.js * Adding story --------- Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
This commit is contained in:
parent
c9f420234f
commit
5135b80de7
@ -2,11 +2,11 @@ import React from 'react';
|
|||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import Box from '../../ui/box';
|
import Box from '../../ui/box';
|
||||||
import Dialog from '../../ui/dialog';
|
import Dialog from '../../ui/dialog';
|
||||||
import Typography from '../../ui/typography/typography';
|
import { Text } from '../../component-library';
|
||||||
import {
|
import {
|
||||||
TypographyVariant,
|
TextVariant,
|
||||||
TEXT_ALIGN,
|
TextAlign,
|
||||||
FONT_WEIGHT,
|
FontWeight,
|
||||||
DISPLAY,
|
DISPLAY,
|
||||||
TextColor,
|
TextColor,
|
||||||
IconColor,
|
IconColor,
|
||||||
@ -32,22 +32,24 @@ export default function NftsDetectionNotice() {
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box paddingLeft={2}>
|
<Box paddingLeft={2}>
|
||||||
<Typography
|
<Text
|
||||||
color={TextColor.textDefault}
|
color={TextColor.textDefault}
|
||||||
align={TEXT_ALIGN.LEFT}
|
align={TextAlign.Left}
|
||||||
variant={TypographyVariant.H7}
|
variant={TextVariant.bodySm}
|
||||||
fontWeight={FONT_WEIGHT.BOLD}
|
as="h6"
|
||||||
|
fontWeight={FontWeight.Bold}
|
||||||
>
|
>
|
||||||
{t('newNFTsDetected')}
|
{t('newNFTsDetected')}
|
||||||
</Typography>
|
</Text>
|
||||||
<Typography
|
<Text
|
||||||
color={TextColor.textDefault}
|
color={TextColor.textDefault}
|
||||||
align={TEXT_ALIGN.LEFT}
|
align={TextAlign.Left}
|
||||||
variant={TypographyVariant.H7}
|
variant={TextVariant.bodySm}
|
||||||
boxProps={{ marginBottom: 4 }}
|
as="h6"
|
||||||
|
marginBottom={4}
|
||||||
>
|
>
|
||||||
{t('newNFTDetectedMessage')}
|
{t('newNFTDetectedMessage')}
|
||||||
</Typography>
|
</Text>
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import NftsDetectionNotice from '.';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'Components/App/NftsDetectionNotice',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const DefaultStory = () => <NftsDetectionNotice />;
|
||||||
|
|
||||||
|
DefaultStory.storyName = 'Default';
|
Loading…
x
Reference in New Issue
Block a user