-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Document/YqlView): use autoOpen for yql-view [YTFRONT-4463]
- Loading branch information
1 parent
8b336be
commit 8103c68
Showing
12 changed files
with
127 additions
and
61 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
11 changes: 8 additions & 3 deletions
11
packages/ui/src/ui/containers/OpenQueryButtons/OpenQueryButtons.scss
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
15 changes: 4 additions & 11 deletions
15
packages/ui/src/ui/containers/YQLKitButton/YQLKitButton.tsx
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,25 +1,18 @@ | ||
import React from 'react'; | ||
import {useDispatch, useSelector} from 'react-redux'; | ||
import {useDispatch} from 'react-redux'; | ||
|
||
import {RootState} from '../../store/reducers/index'; | ||
import {mergeScreen} from '../../store/actions/global'; | ||
|
||
import UIFactory from '../../UIFactory'; | ||
import UIFactory, {YQLButtonProps} from '../../UIFactory'; | ||
|
||
export function YQLKitButton({className}: {className?: string}) { | ||
export function YQLKitButton(props: YQLButtonProps) { | ||
const dispatch = useDispatch(); | ||
const {isSplit} = useSelector((state: RootState) => state.global.splitScreen); | ||
|
||
React.useEffect(() => { | ||
return () => { | ||
dispatch(mergeScreen()); | ||
}; | ||
}, [dispatch]); | ||
|
||
return ( | ||
<React.Fragment> | ||
{UIFactory.yqlWidgetSetup?.renderButton({isSplit, className})} | ||
{UIFactory.yqlWidgetSetup?.renderWidget()} | ||
</React.Fragment> | ||
); | ||
return <React.Fragment>{UIFactory.yqlWidgetSetup?.renderButton(props)}</React.Fragment>; | ||
} |
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
Binary file modified
BIN
-9.42 KB
(90%)
....screen.ts-snapshots/Navigation-static-table---rowselector-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8.02 KB
(91%)
....table.base.screen.ts-snapshots/Navigation-table---Content-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.44 KB
(92%)
...e.screen.ts-snapshots/Navigation-table---userColumnPresets-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.38 KB
(92%)
...e.screen.ts-snapshots/Navigation-table---userColumnPresets-3-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-19.7 KB
(91%)
...e.screen.ts-snapshots/Navigation-truncated-table---Content-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.