[Glitch] Use LayoutType from is_mobile in actions/app
Port 01caf92d80
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
bf45760e0b
commit
7630b904ee
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
||||||
import { createAction } from '@reduxjs/toolkit';
|
import { createAction } from '@reduxjs/toolkit';
|
||||||
|
import type { LayoutType } from '../is_mobile';
|
||||||
|
|
||||||
type ChangeLayoutPayload = {
|
type ChangeLayoutPayload = {
|
||||||
layout: 'mobile' | 'single-column' | 'multi-column';
|
layout: LayoutType;
|
||||||
};
|
};
|
||||||
export const changeLayout =
|
export const changeLayout =
|
||||||
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');
|
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');
|
||||||
|
|
Loading…
Reference in a new issue