feat(system): add EmojiHash component

This commit is contained in:
Pavel Prichodko 2022-04-11 20:58:49 +02:00
parent 117c497990
commit 45b821d5cb
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
5 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# EmojiHash
```tsx
import { EmojiHash } from '@status-im/components'
```

View File

@ -0,0 +1,24 @@
import React from 'react'
import { Base } from './styles'
interface Props {
name?: string
}
const EmojiHash = (props: Props) => {
const { name } = props
console.log(name)
return (
<Base>
🎩🍞🥑🦍🌈📡
<br />
💅🏻🔔👵🅱
</Base>
)
}
export { EmojiHash }
export type { Props as EmojiHashProps }

View File

@ -0,0 +1,2 @@
export type { EmojiHashProps } from './emoji-hash'
export { EmojiHash } from './emoji-hash'

View File

@ -0,0 +1,6 @@
import { styled } from '~/src/styles/config'
export const Base = styled('div', {
position: 'relative',
flexShrink: 0,
})

View File

@ -11,6 +11,7 @@ export {
DialogTrigger, DialogTrigger,
} from './dialog' } from './dialog'
export { DropdownMenu, DropdownMenuTrigger } from './dropdown-menu' export { DropdownMenu, DropdownMenuTrigger } from './dropdown-menu'
export { EmojiHash } from './emoji-hash'
export { EthAddress } from './eth-address' export { EthAddress } from './eth-address'
export { Flex } from './flex' export { Flex } from './flex'
export { Grid } from './grid' export { Grid } from './grid'