mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
feat: CB-1826 vqb ordering
This commit is contained in:
@@ -194,10 +194,10 @@
|
||||
</g>
|
||||
</symbol>
|
||||
|
||||
<symbol id="order-arrow-up" viewBox="0 0 16 16">
|
||||
<symbol id="order-arrow-asc" viewBox="0 0 16 16">
|
||||
<path fill="#338ECC" fill-rule="evenodd" d="M1 7l7-6 7 6h-5v8H6V7H1z" clip-rule="evenodd"/>
|
||||
</symbol>
|
||||
<symbol id="order-arrow-down" viewBox="0 0 16 16">
|
||||
<symbol id="order-arrow-desc" viewBox="0 0 16 16">
|
||||
<path fill="#338ECC" fill-rule="evenodd" d="M15 9l-7 6-7-6h5V1h4v8h5z" clip-rule="evenodd"/>
|
||||
</symbol>
|
||||
<symbol id="order-arrow-unknown" viewBox="0 0 16 16">
|
||||
|
||||
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
+3
-3
@@ -56,9 +56,9 @@ export const OrderButton = observer<Props>(function OrderButton({
|
||||
|
||||
let icon = 'order-arrow-unknown';
|
||||
if (currentOrder === EOrder.asc) {
|
||||
icon = 'order-arrow-up';
|
||||
icon = 'order-arrow-asc';
|
||||
} else if (currentOrder === EOrder.desc) {
|
||||
icon = 'order-arrow-down';
|
||||
icon = 'order-arrow-desc';
|
||||
}
|
||||
|
||||
const handleSort = async (e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
@@ -69,7 +69,7 @@ export const OrderButton = observer<Props>(function OrderButton({
|
||||
});
|
||||
};
|
||||
|
||||
function preventFocus(event: React.MouseEvent<HTMLButtonElement, MouseEvent>) {
|
||||
function preventFocus(event: React.MouseEvent<HTMLButtonElement>) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user