revert type
This commit is contained in:
parent
2cc49d379e
commit
1d099cf5d2
|
@ -46,7 +46,7 @@ export const AllVariants: Story = {
|
|||
<Stack space flexDirection="column" alignItems="flex-start" gap={12}>
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -122,7 +122,7 @@ export const AllVariants: Story = {
|
|||
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -198,7 +198,7 @@ export const AllVariants: Story = {
|
|||
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -276,7 +276,7 @@ export const AllVariants: Story = {
|
|||
<Stack space flexDirection="column" alignItems="flex-start" gap={12}>
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -361,7 +361,7 @@ export const AllVariants: Story = {
|
|||
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -446,7 +446,7 @@ export const AllVariants: Story = {
|
|||
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -533,7 +533,7 @@ export const AllVariants: Story = {
|
|||
<Stack space flexDirection="column" alignItems="flex-start" gap={12}>
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -618,7 +618,7 @@ export const AllVariants: Story = {
|
|||
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
@ -703,7 +703,7 @@ export const AllVariants: Story = {
|
|||
|
||||
<Stack space flexDirection="column" alignItems="flex-start">
|
||||
<ContextTag
|
||||
type="user"
|
||||
type="default"
|
||||
user={{
|
||||
name: 'User',
|
||||
src: 'https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.seadn.io%2Fgae%2FFG0QJ00fN3c_FWuPeUr9-T__iQl63j9hn5d6svW8UqOmia5zp3lKHPkJuHcvhZ0f_Pd6P2COo9tt9zVUvdPxG_9BBw%3Fw%3D500%26auto%3Dformat&f=1&nofb=1&ipt=c177cd71d8d0114080cfc6efd3f9e098ddaeb1b347919bd3089bf0aacb003b3e&ipo=images',
|
||||
|
|
|
@ -16,7 +16,7 @@ type Props = {
|
|||
blur?: boolean
|
||||
outline?: boolean
|
||||
} & (
|
||||
| { type: 'user'; user: { name: string; src: string } }
|
||||
| { type: 'default'; user: { name: string; src: string } }
|
||||
| { type: 'account'; account: { name: string; emoji: string } }
|
||||
| {
|
||||
type: 'group'
|
||||
|
@ -82,7 +82,7 @@ const ContextTag = (props: Props) => {
|
|||
|
||||
const renderContent = () => {
|
||||
switch (type) {
|
||||
case 'user': {
|
||||
case 'default': {
|
||||
return (
|
||||
<>
|
||||
<Avatar
|
||||
|
|
Loading…
Reference in New Issue