Fix broken StatusQuoteManager stories (#39678)

This commit is contained in:
diondiondion authored and GitHub committed 2026-07-01 09:41:01 +00:00
1 parent eaeb098ba4
commit affd787d00
1 file changed
+7 -9
@@ -1,11 +1,9 @@
import { Map as ImmutableMap } from 'immutable';
import type { Meta, StoryObj } from '@storybook/react-vite';
import type { ApiQuoteJSON } from '@/mastodon/api_types/quotes';
import {
accountFactoryImmutable,
statusFactoryImmutable,
statusQuotedFactoryAPI,
} from '@/testing/factories';
import type { StatusQuoteManagerProps } from './status_quoted';
@@ -31,10 +29,10 @@ const meta = {
id: '2',
language: 'en',
text: 'Quote!',
quote: ImmutableMap({
quote: {
state: 'accepted',
quoted_status: '1',
}) as unknown as ApiQuoteJSON,
quoted_status: statusQuotedFactoryAPI({ id: '1' }),
},
}),
'1001': statusFactoryImmutable({
id: '1001',
@@ -53,10 +51,10 @@ const meta = {
language: 'mn-Mong',
// meaning: Mongolia
text: 'ᠮᠤᠩᠭᠤᠯ',
quote: ImmutableMap({
quote: {
state: 'accepted',
quoted_status: '1002',
}) as unknown as ApiQuoteJSON,
quoted_status: statusQuotedFactoryAPI({ id: '1002' }),
},
}),
},
},