Skip to content

Commit 0377ad7

Browse files
committed
Merge remote-tracking branch 'origin/devel' into dbeaver/pro#5574/fix/multi-query-vqb
2 parents 499f944 + f001049 commit 0377ad7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2438
-40
lines changed

common-react/@dbeaver/react-data-grid/src/renderers/OrderButton.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { clsx, IconButton } from '@dbeaver/ui-kit';
1+
import { clsx, IconButton, Icon } from '@dbeaver/ui-kit';
22

33
interface OrderButtonProps {
44
colIdx: number;
@@ -14,9 +14,9 @@ export function OrderButton({ colIdx, sortState, onSort, tabIndex, ref }: OrderB
1414
onSort(colIdx, nextSortState, e.ctrlKey || e.metaKey);
1515
}
1616

17-
const svgSortAsc = '#icon-sort-asc';
18-
const svgSortDesc = '#icon-sort-desc';
19-
const svgSortUnknown = '#icon-sort-unknown';
17+
const svgSortAsc = 'sort-asc';
18+
const svgSortDesc = 'sort-desc';
19+
const svgSortUnknown = 'sort-unknown';
2020

2121
const iconSrc = sortState === 'asc' ? svgSortAsc : sortState === 'desc' ? svgSortDesc : svgSortUnknown;
2222

@@ -34,9 +34,7 @@ export function OrderButton({ colIdx, sortState, onSort, tabIndex, ref }: OrderB
3434
sortState && 'tw:opacity-100',
3535
)}
3636
>
37-
<svg width="16" height="16" viewBox="0 0 16 16">
38-
<use href={iconSrc} />
39-
</svg>
37+
<Icon name={iconSrc} />
4038
</IconButton>
4139
);
4240
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
import '../src/index.css';
22
import './global.css';
3+
import Icons from '../assets/icons/icons.svg?react';
4+
5+
import type { GlobalProvider } from '@ladle/react';
6+
7+
export const Provider: GlobalProvider = ({ children }) => {
8+
return (
9+
<div>
10+
<Icons style={{ display: 'none' }} />
11+
{children}
12+
</div>
13+
);
14+
};
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)