fix icons import
This commit is contained in:
parent
baaf6735f0
commit
2f60b9ea1d
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import { ChevronIcon } from '@status-im/icons'
|
import { ChevronDown } from '@status-im/icons/20'
|
||||||
import { Stack } from '@tamagui/core'
|
import { Stack } from '@tamagui/core'
|
||||||
import { AnimatePresence } from 'tamagui'
|
import { AnimatePresence } from 'tamagui'
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ const Accordion = ({
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<ChevronIcon color="$neutral-50" size={16} />
|
<ChevronDown color="$neutral-50" />
|
||||||
</Stack>
|
</Stack>
|
||||||
<Paragraph
|
<Paragraph
|
||||||
marginLeft={4}
|
marginLeft={4}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { MutedIcon } from '@status-im/icons'
|
import { Muted } from '@status-im/icons/20'
|
||||||
import { Stack } from '@tamagui/core'
|
import { Stack } from '@tamagui/core'
|
||||||
|
|
||||||
import { Label, Paragraph } from '../typography'
|
import { Label, Paragraph } from '../typography'
|
||||||
|
@ -108,9 +108,7 @@ const AccordionItem = ({
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
)}
|
)}
|
||||||
{channelStatus === 'muted' && (
|
{channelStatus === 'muted' && <Muted color="$neutral-40" />}
|
||||||
<MutedIcon size={20} color="$neutral-40" />
|
|
||||||
)}
|
|
||||||
</Stack>
|
</Stack>
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
import {
|
import { Audio, Format, Image, Reaction } from '@status-im/icons/20'
|
||||||
AudioIcon,
|
|
||||||
FormatIcon,
|
|
||||||
ImageIcon,
|
|
||||||
ReactionIcon,
|
|
||||||
} from '@status-im/icons'
|
|
||||||
import { Stack, XStack, YStack } from 'tamagui'
|
import { Stack, XStack, YStack } from 'tamagui'
|
||||||
|
|
||||||
import { IconButton } from '../icon-button'
|
import { IconButton } from '../icon-button'
|
||||||
|
@ -39,11 +34,11 @@ const Composer = (props: BaseProps) => {
|
||||||
</YStack>
|
</YStack>
|
||||||
<XStack alignItems="center" justifyContent="space-between" pt={8}>
|
<XStack alignItems="center" justifyContent="space-between" pt={8}>
|
||||||
<Stack space={12} flexDirection="row">
|
<Stack space={12} flexDirection="row">
|
||||||
<IconButton noBackground icon={<ImageIcon />} />
|
<IconButton noBackground icon={<Image />} />
|
||||||
<IconButton noBackground icon={<ReactionIcon />} />
|
<IconButton noBackground icon={<Reaction />} />
|
||||||
<IconButton noBackground icon={<FormatIcon />} />
|
<IconButton noBackground icon={<Format />} />
|
||||||
</Stack>
|
</Stack>
|
||||||
<IconButton noBackground icon={<AudioIcon />} />
|
<IconButton noBackground icon={<Audio />} />
|
||||||
</XStack>
|
</XStack>
|
||||||
</YStack>
|
</YStack>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { OptionsIcon } from '@status-im/icons'
|
import { Options } from '@status-im/icons/20'
|
||||||
|
|
||||||
import { IconButton } from './icon-button'
|
import { IconButton } from './icon-button'
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ type Story = StoryObj<typeof IconButton>
|
||||||
// More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
|
// More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
|
||||||
export const Default: Story = {
|
export const Default: Story = {
|
||||||
args: {
|
args: {
|
||||||
icon: <OptionsIcon />,
|
icon: <Options />,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
/* eslint-disable eslint-comments/disable-enable-pair */
|
/* eslint-disable eslint-comments/disable-enable-pair */
|
||||||
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
||||||
import * as icons from '@status-im/icons'
|
import * as icons12 from '@status-im/icons/12'
|
||||||
|
import * as icons16 from '@status-im/icons/16'
|
||||||
|
import * as icons20 from '@status-im/icons/20'
|
||||||
|
import * as reactions from '@status-im/icons/reactions'
|
||||||
|
|
||||||
import { Paragraph } from '../typography'
|
import { Paragraph } from '../typography'
|
||||||
|
|
||||||
import type { IconProps } from '@status-im/icons'
|
import type { IconProps } from '@status-im/icons/types'
|
||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
import type React from 'react'
|
import type React from 'react'
|
||||||
|
|
||||||
|
@ -26,8 +29,9 @@ export const All: Story = {
|
||||||
args: {},
|
args: {},
|
||||||
render: () => {
|
render: () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<div style={{ display: 'grid', gap: 12 }}>
|
<div style={{ display: 'grid', gap: 12 }}>
|
||||||
{Object.keys(icons).map(name => {
|
{Object.keys(icons12).map(name => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
// eslint-disable-next-line import/namespace
|
// eslint-disable-next-line import/namespace
|
||||||
const Icon = icons[name] as React.FunctionComponent<IconProps>
|
const Icon = icons[name] as React.FunctionComponent<IconProps>
|
||||||
|
@ -43,6 +47,58 @@ export const All: Story = {
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
<div style={{ display: 'grid', gap: 12 }}>
|
||||||
|
{Object.keys(icons16).map(name => {
|
||||||
|
// @ts-ignore
|
||||||
|
// eslint-disable-next-line import/namespace
|
||||||
|
const Icon = icons[name] as React.FunctionComponent<IconProps>
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={name}
|
||||||
|
style={{ display: 'flex', flexDirection: 'column' }}
|
||||||
|
>
|
||||||
|
<Icon color="$background" />
|
||||||
|
<Paragraph>{unpascal(name)}</Paragraph>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
<div style={{ display: 'grid', gap: 12 }}>
|
||||||
|
{Object.keys(icons20).map(name => {
|
||||||
|
// @ts-ignore
|
||||||
|
// eslint-disable-next-line import/namespace
|
||||||
|
const Icon = icons[name] as React.FunctionComponent<IconProps>
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={name}
|
||||||
|
style={{ display: 'flex', flexDirection: 'column' }}
|
||||||
|
>
|
||||||
|
<Icon color="$background" />
|
||||||
|
<Paragraph>{unpascal(name)}</Paragraph>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
<div style={{ display: 'grid', gap: 12 }}>
|
||||||
|
{Object.keys(reactions).map(name => {
|
||||||
|
// @ts-ignore
|
||||||
|
// eslint-disable-next-line import/namespace
|
||||||
|
const Icon = icons[name] as React.FunctionComponent<IconProps>
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
key={name}
|
||||||
|
style={{ display: 'flex', flexDirection: 'column' }}
|
||||||
|
>
|
||||||
|
<Icon color="$background" />
|
||||||
|
<Paragraph>{unpascal(name)}</Paragraph>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue