1
0
Fork 0
forked from gitea/nas

Rewrite actions/app.ts and reducers/missed_updates.ts with createAction (#24801)

This commit is contained in:
fusagiko / takayamaki 2023-05-03 22:28:39 +09:00 committed by GitHub
parent c98b012583
commit 0999cb4601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 45 additions and 42 deletions

View file

@ -0,0 +1,10 @@
import { createAction } from '@reduxjs/toolkit';
export const focusApp = createAction('APP_FOCUS');
export const unfocusApp = createAction('APP_UNFOCUS');
type ChangeLayoutPayload = {
layout: 'mobile' | 'single-column' | 'multi-column';
};
export const changeLayout =
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');