Remove rendering of custom emoji using the database (#37284)

This commit is contained in:
Echo authored and GitHub committed 2025-12-17 14:40:34 +00:00
1 parent 71af094f97
commit dbc5af6641
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:',
},
};