Remove rendering of custom emoji using the database (#37284)
This commit is contained in:
5 files changed
+41
-65
No files matched your search
@@ -2,6 +2,9 @@ import type { ComponentProps } from 'react';
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/react-vite';
|
||||
|
||||
import { customEmojiFactory } from '@/testing/factories';
|
||||
|
||||
import { CustomEmojiProvider } from './context';
|
||||
import { Emoji } from './index';
|
||||
|
||||
type EmojiProps = ComponentProps<typeof Emoji> & {
|
||||
@@ -34,7 +37,11 @@ const meta = {
|
||||
},
|
||||
},
|
||||
render(args) {
|
||||
return <Emoji {...args} />;
|
||||
return (
|
||||
<CustomEmojiProvider emojis={[customEmojiFactory()]}>
|
||||
<Emoji {...args} />
|
||||
</CustomEmojiProvider>
|
||||
);
|
||||
},
|
||||
} satisfies Meta<EmojiProps>;
|
||||
|
||||
@@ -49,9 +56,3 @@ export const CustomEmoji: Story = {
|
||||
code: ':custom:',
|
||||
},
|
||||
};
|
||||
|
||||
export const LegacyEmoji: Story = {
|
||||
args: {
|
||||
code: ':copyright:',
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user