feat: CB-1826 vqb ordering

This commit is contained in:
Wroud
2022-03-30 19:55:34 +03:00
parent 5b5a0e37d8
commit 2ff7c81c1b
2 changed files with 5 additions and 5 deletions
@@ -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

@@ -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();
}