mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-11 18:39:04 +01:00
2379bfe3ea
Port e38ce3beb7
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
9 lines
382 B
TypeScript
9 lines
382 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 }),
|
|
);
|