[Glitch] Rewrite actions/app.ts and reducers/missed_updates.ts with createAction
Port 0999cb4601
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
committed by
Claire
parent
a33d6c946a
commit
3d9e35375c
7
app/javascript/flavours/glitch/actions/app.ts
Normal file
7
app/javascript/flavours/glitch/actions/app.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { createAction } from '@reduxjs/toolkit';
|
||||
|
||||
type ChangeLayoutPayload = {
|
||||
layout: 'mobile' | 'single-column' | 'multi-column';
|
||||
};
|
||||
export const changeLayout =
|
||||
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');
|
Reference in New Issue
Block a user