Skip to content

Commit

Permalink
add blobfox theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jan 17, 2024
1 parent fc80839 commit 30712c4
Show file tree
Hide file tree
Showing 578 changed files with 71,749 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 30712c4

Please sign in to comment.