~cytrogen/masto-fe

5bc8e2d1fdc3f1b1a0b9af5aed762d44e048250c — fusagiko / takayamaki 2 years ago 7c1305b
Use LayoutType from is_mobile in actions/app (#24863)

1 files changed, 2 insertions(+), 1 deletions(-)

M app/javascript/mastodon/actions/app.ts
M app/javascript/mastodon/actions/app.ts => app/javascript/mastodon/actions/app.ts +2 -1
@@ 1,10 1,11 @@
import { createAction } from '@reduxjs/toolkit';
import type { LayoutType } from '../is_mobile';

export const focusApp = createAction('APP_FOCUS');
export const unfocusApp = createAction('APP_UNFOCUS');

type ChangeLayoutPayload = {
  layout: 'mobile' | 'single-column' | 'multi-column';
  layout: LayoutType;
};
export const changeLayout =
  createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');