Skip to content

Commit

Permalink
feat: ui changes in inscription flow
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Sep 6, 2023
1 parent c15b223 commit 23ab7f0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
24 changes: 15 additions & 9 deletions src/app/components/bitcoin-fees-list/components/fees-list-item.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Flex, Text, color, transition } from '@stacks/ui';
import { Box, transition } from '@stacks/ui';
import { SharedComponentsSelectors } from '@tests/selectors/shared-component.selectors';
import { Flex, styled } from 'leather-styles/jsx';
import { token } from 'leather-styles/tokens';

interface FeesListItemProps {
Expand All @@ -22,10 +23,10 @@ export function FeesListItem({
}: FeesListItemProps) {
return (
<Box
_hover={{ background: '#F9F9FA' }}
_hover={{ background: token('colors.accent.component-background-hover') }}
as="button"
border={isSelected ? '4px solid' : '1px solid'}
borderColor={isSelected ? token('colors.brown.12') : token('colors.ink.7')}
borderColor={token('colors.accent.action-primary-default')}
borderRadius="16px"
boxShadow="0px 1px 2px rgba(0, 0, 0, 0.04)"
data-testid={SharedComponentsSelectors.FeesListItem}
Expand All @@ -35,14 +36,19 @@ export function FeesListItem({
width="100%"
{...props}
>
<Flex justifyContent="center" mb="base-tight" fontWeight={500}>
<Text mr="tight">{feeType}</Text>
<Text>{arrivesIn}</Text>
<Flex justifyContent="center" mb="base-tight">
<styled.span textStyle="label.01" mr="tight">
{feeType}
</styled.span>
<styled.span textStyle="label.01">{arrivesIn}</styled.span>
</Flex>
<Flex justifyContent="center" color={color('text-caption')}>
<Text
<Flex justifyContent="center">
<styled.span
textStyle="caption.02"
data-testid={SharedComponentsSelectors.FeesListItemFeeValue}
>{`${feeFiatValue} | ${feeRate} sats/vB | ${feeAmount}`}</Text>
>
{`${feeFiatValue} | ${feeRate} sats/vB | ${feeAmount}`}
</styled.span>
</Flex>
</Box>
);
Expand Down
2 changes: 0 additions & 2 deletions src/app/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const Header: React.FC<HeaderProps> = memo(props => {
const navigate = useNavigate();

const [desktopViewport] = useMediaQuery(`(min-width: ${token('sizes.desktopViewportMinWidth')})`);
const [isNarrowViewport] = useMediaQuery('(max-width: 640px)');

const leatherLogoIsClickable = useMemo(() => {
return (
Expand Down Expand Up @@ -63,7 +62,6 @@ export const Header: React.FC<HeaderProps> = memo(props => {
p="base"
minHeight={['', '80px']}
position="relative"
background={isNarrowViewport ? token('colors.brown.1') : token('colors.brown.2')}
{...rest}
>
{onClose ? (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { figmaTheme } from '@app/common/utils/figma-theme';
import { token } from 'leather-styles/tokens';

import { Flag } from '../layout/flag';
import { InscriptionMetadata } from './components/inscription-metadata';
Expand All @@ -25,7 +25,7 @@ export function InscriptionPreviewCard({
<Flag
align="middle"
border={hideBorder ? 'unset' : '1px solid'}
borderColor={hideBorder ? 'unset' : figmaTheme.border}
borderColor={hideBorder ? 'unset' : token('colors.accent.border-default')}
borderRadius={hideBorder ? 'unset' : '10px'}
img={image}
p={hideBorder ? 'unset' : 'base'}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Flex } from '@stacks/ui';
import { token } from 'leather-styles/tokens';

import { SpaceBetween } from '@app/components/layout/space-between';
import { Text } from '@app/components/typography';
Expand All @@ -12,7 +13,7 @@ export function CollectibleAsset({ icon, name, symbol }: CollectibleAssetProps)
return (
<Flex
alignItems="center"
border="1px solid #DCDDE2"
border={`1px solid ${token('colors.accent.border-default')}`}
borderRadius="10px"
minHeight="64px"
mb="base"
Expand Down

0 comments on commit 23ab7f0

Please sign in to comment.