Skip to content

Commit dfe1cdc

Browse files
committed
fix: rebase
1 parent 99a82df commit dfe1cdc

File tree

5 files changed

+27
-271
lines changed

5 files changed

+27
-271
lines changed

src/containers/Drawer/Drawer.scss

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/containers/Drawer/Drawer.tsx

Lines changed: 0 additions & 224 deletions
This file was deleted.

src/containers/Tenant/Diagnostics/TopQueries/QueryDetails/QueryDetails.tsx

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import React from 'react';
33
import {Code, Xmark} from '@gravity-ui/icons';
44
import {Button, Flex, Icon} from '@gravity-ui/uikit';
55

6-
import Fullscreen from '../../../../../components/Fullscreen/Fullscreen';
76
import type {InfoViewerItem} from '../../../../../components/InfoViewer';
87
import {InfoViewer} from '../../../../../components/InfoViewer';
98
import {YDBSyntaxHighlighter} from '../../../../../components/SyntaxHighlighter/YDBSyntaxHighlighter';
@@ -45,33 +44,29 @@ export const QueryDetails = ({
4544
</div>
4645
</div>
4746

48-
<Fullscreen>
49-
<Flex direction="column" className={b('content')}>
50-
<InfoViewer info={infoItems} />
47+
<Flex direction="column" className={b('content')}>
48+
<InfoViewer info={infoItems} />
5149

52-
<div className={b('query-content')}>
53-
<div className={b('query-header')}>
54-
<div className={b('query-title')}>
55-
{i18n('query-details.query.title')}
56-
</div>
57-
<Button
58-
view="flat-secondary"
59-
size="m"
60-
onClick={onOpenInEditor}
61-
className={b('editor-button')}
62-
>
63-
<Icon data={Code} size={16} />
64-
{i18n('query-details.open-in-editor')}
65-
</Button>
66-
</div>
67-
<YDBSyntaxHighlighter
68-
language="yql"
69-
text={queryText}
70-
withClipboardButton={{alwaysVisible: true, withLabel: false}}
71-
/>
50+
<div className={b('query-content')}>
51+
<div className={b('query-header')}>
52+
<div className={b('query-title')}>{i18n('query-details.query.title')}</div>
53+
<Button
54+
view="flat-secondary"
55+
size="m"
56+
onClick={onOpenInEditor}
57+
className={b('editor-button')}
58+
>
59+
<Icon data={Code} size={16} />
60+
{i18n('query-details.open-in-editor')}
61+
</Button>
7262
</div>
73-
</Flex>
74-
</Fullscreen>
63+
<YDBSyntaxHighlighter
64+
language="yql"
65+
text={queryText}
66+
withClipboardButton={{alwaysVisible: true, withLabel: false}}
67+
/>
68+
</div>
69+
</Flex>
7570
</div>
7671
);
7772
};

src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {Column} from '@gravity-ui/react-data-table';
44
import {TableColumnSetup} from '@gravity-ui/uikit';
55
import {isEqual} from 'lodash';
66

7+
import {DrawerWrapper} from '../../../../components/Drawer';
78
import {ResponseError} from '../../../../components/Errors/ResponseError';
89
import {ResizeableDataTable} from '../../../../components/ResizeableDataTable/ResizeableDataTable';
910
import {Search} from '../../../../components/Search';
@@ -14,7 +15,6 @@ import {cn} from '../../../../utils/cn';
1415
import {useAutoRefreshInterval, useTypedSelector} from '../../../../utils/hooks';
1516
import {useSelectedColumns} from '../../../../utils/hooks/useSelectedColumns';
1617
import {parseQueryErrorToString} from '../../../../utils/query';
17-
import {Drawer} from '../../../Drawer/Drawer';
1818

1919
import {QueryDetailsDrawerContent} from './QueryDetails/QueryDetailsDrawerContent';
2020
import {getRunningQueriesColumns} from './columns/columns';
@@ -109,7 +109,7 @@ export const RunningQueriesData = ({
109109
}, [isDrawerVisible]);
110110

111111
return (
112-
<Drawer.ItemWrapper
112+
<DrawerWrapper
113113
isDrawerVisible={isDrawerVisible}
114114
onCloseDrawer={handleCloseDetails}
115115
renderDrawerContent={renderDrawerContent}
@@ -153,6 +153,6 @@ export const RunningQueriesData = ({
153153
/>
154154
</TableWithControlsLayout.Table>
155155
</TableWithControlsLayout>
156-
</Drawer.ItemWrapper>
156+
</DrawerWrapper>
157157
);
158158
};

src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {isEqual} from 'lodash';
66

77
import type {DateRangeValues} from '../../../../components/DateRange';
88
import {DateRange} from '../../../../components/DateRange';
9+
import {DrawerWrapper} from '../../../../components/Drawer';
910
import {ResponseError} from '../../../../components/Errors/ResponseError';
1011
import {ResizeableDataTable} from '../../../../components/ResizeableDataTable/ResizeableDataTable';
1112
import {Search} from '../../../../components/Search';
@@ -17,7 +18,6 @@ import {cn} from '../../../../utils/cn';
1718
import {useAutoRefreshInterval, useTypedSelector} from '../../../../utils/hooks';
1819
import {useSelectedColumns} from '../../../../utils/hooks/useSelectedColumns';
1920
import {parseQueryErrorToString} from '../../../../utils/query';
20-
import {Drawer} from '../../../Drawer/Drawer';
2121

2222
import {QueryDetailsDrawerContent} from './QueryDetails/QueryDetailsDrawerContent';
2323
import {getTopQueriesColumns} from './columns/columns';
@@ -136,7 +136,7 @@ export const TopQueriesData = ({
136136
}, [isDrawerVisible]);
137137

138138
return (
139-
<Drawer.ItemWrapper
139+
<DrawerWrapper
140140
isDrawerVisible={isDrawerVisible}
141141
onCloseDrawer={handleCloseDetails}
142142
renderDrawerContent={renderDrawerContent}
@@ -191,6 +191,6 @@ export const TopQueriesData = ({
191191
/>
192192
</TableWithControlsLayout.Table>
193193
</TableWithControlsLayout>
194-
</Drawer.ItemWrapper>
194+
</DrawerWrapper>
195195
);
196196
};

0 commit comments

Comments
 (0)