-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[desk-tool] Improve dialogs on narrow screens
- Loading branch information
1 parent
2106c8f
commit 47c3bd4
Showing
6 changed files
with
32 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {DeskToolFeatures} from './types' | ||
|
||
export const DEFAULT_STATE: DeskToolFeatures = { | ||
reviewChanges: false, | ||
splitPanes: false, | ||
splitViews: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import {createContext} from 'react' | ||
import {DEFAULT_STATE} from './constants' | ||
import {DeskToolFeatures} from './types' | ||
|
||
export const DeskToolFeaturesContext = createContext<DeskToolFeatures>({ | ||
reviewChanges: false, | ||
splitViews: false | ||
}) | ||
export const DeskToolFeaturesContext = createContext<DeskToolFeatures>(DEFAULT_STATE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export interface DeskToolFeatures { | ||
reviewChanges: boolean | ||
splitPanes: boolean | ||
splitViews: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters