Skip to content

Commit

Permalink
Use LayoutType from is_mobile in actions/app (mastodon#24863)
Browse files Browse the repository at this point in the history
  • Loading branch information
takayamaki authored and skerit committed Jul 7, 2023
1 parent e58e7c7 commit 6e8821f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/javascript/mastodon/actions/app.ts
Original file line number Diff line number Diff line change
@@ -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');

0 comments on commit 6e8821f

Please sign in to comment.