Add support for collapse navigator and global config (#33)
This commit is contained in:
1 parent
9a18b417f6
commit
439be1797d
20 files changed
+305
-50
No files matched your search
@@ -15,7 +15,9 @@ export interface IToken {
|
||||
expiration?: number;
|
||||
}
|
||||
|
||||
export interface ISetting {}
|
||||
export interface ISetting {
|
||||
navigationCollapsed?: boolean;
|
||||
}
|
||||
|
||||
export interface ICommonState {
|
||||
token: IToken;
|
||||
|
||||
@@ -10,6 +10,10 @@ export default (): IRootState => {
|
||||
refresh: undefined,
|
||||
expiration: undefined
|
||||
},
|
||||
setting: {
|
||||
// if PC, set default to true, else false
|
||||
navigationCollapsed: window.innerWidth < 768
|
||||
},
|
||||
chat: chatState(),
|
||||
midjourney: midjourneyState()
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user