Skip to content

Commit

Permalink
Merge pull request 'add blobfox theme' (#1) from tasty into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Feb 1, 2024
2 parents 4f6cefa + 68d90be commit 1c3d6e7
Show file tree
Hide file tree
Showing 582 changed files with 71,870 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/javascript/flavours/blobfox/actions/account_notes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { ApiRelationshipJSON } from 'flavours/blobfox/api_types/relationships';
import { createAppAsyncThunk } from 'flavours/blobfox/store/typed_functions';

import api from '../api';

export const submitAccountNote = createAppAsyncThunk(
'account_note/submit',
async (args: { id: string; value: string }, { getState }) => {
const response = await api(getState).post<ApiRelationshipJSON>(
`/api/v1/accounts/${args.id}/note`,
{
comment: args.value,
},
);

return { relationship: response.data };
},
);
Loading

0 comments on commit 1c3d6e7

Please sign in to comment.