mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-01 20:39:03 +01:00
e32bfad88a
Port b6fd14f0e2
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
10 lines
407 B
TypeScript
10 lines
407 B
TypeScript
import { apiSubmitAccountNote } from 'flavours/glitch/api/accounts';
|
|
import { createDataLoadingThunk } from 'flavours/glitch/store/typed_functions';
|
|
|
|
export const submitAccountNote = createDataLoadingThunk(
|
|
'account_note/submit',
|
|
({ accountId, note }: { accountId: string; note: string }) =>
|
|
apiSubmitAccountNote(accountId, note),
|
|
(relationship) => ({ relationship }),
|
|
{ skipLoading: true },
|
|
);
|