[Glitch] Refactor context reducer to TypeScript
Port 17d8e2b6e3 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
a43f942379
commit
4045c0e241
13 files changed
+308
-234
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { apiRequestGet } from 'flavours/glitch/api';
|
||||
import type { ApiContextJSON } from 'flavours/glitch/api_types/statuses';
|
||||
|
||||
export const apiGetContext = (statusId: string) =>
|
||||
apiRequestGet<ApiContextJSON>(`v1/statuses/${statusId}/context`);
|
||||
Reference in new issue
Block a user