-
Notifications
You must be signed in to change notification settings - Fork 1
/
pageTypes.ts
45 lines (37 loc) · 1.08 KB
/
pageTypes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { IntlShape } from 'react-intl';
import * as settingReducer from 'reducers/setting';
import { Genre, PuzzleOrder, TagAggrOrder, Yami } from 'generated/globalTypes';
import { CommentsQueryVariables } from 'graphql/Queries/generated/CommentsQuery';
import { GlobalUserType } from 'reducers/types';
export type SearchVariablesStates = {
title: null | string;
content: null | string;
solution: null | string;
userNickname: null | string;
genre: null | Genre;
yami: null | Yami;
orderBy: Array<PuzzleOrder>;
};
export type AddReplayProps = {
puzzleId: number;
intl: IntlShape;
};
export type EULAProps = {
language: typeof settingReducer.initialState.language;
};
export type LicenseHelpProps = {
language: typeof settingReducer.initialState.language;
};
export type TagsVariablesStates = {
name: null | string;
orderBy: Array<TagAggrOrder>;
};
export type CommentsRendererProps = {
variables: CommentsQueryVariables;
};
export type AddPuzzleProps = {
user: GlobalUserType;
intl: IntlShape;
setTrueLoginModal: () => void;
setTrueSignupModal: () => void;
};