Skip to content
Snippets Groups Projects
Commit da4ce032 authored by ali asaria's avatar ali asaria
Browse files

You can now sort documents by name

parent 50200ec6
Branches fix/sort-documents-by-name
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ import { ...@@ -29,6 +29,7 @@ import {
} from '@mui/joy'; } from '@mui/joy';
import { import {
ChevronUpIcon,
EyeIcon, EyeIcon,
FileTextIcon, FileTextIcon,
FileUpIcon, FileUpIcon,
...@@ -632,7 +633,7 @@ export default function Documents({ ...@@ -632,7 +633,7 @@ export default function Documents({
setOrder(order === 'asc' ? 'desc' : 'asc') setOrder(order === 'asc' ? 'desc' : 'asc')
} }
fontWeight="lg" fontWeight="lg"
endDecorator={<ChevronDownIcon />} endDecorator={<ChevronUpIcon />}
sx={{ sx={{
'& svg': { '& svg': {
transition: '0.2s', transition: '0.2s',
......
...@@ -20,7 +20,7 @@ import { ...@@ -20,7 +20,7 @@ import {
import { import {
ArrowDownIcon, ArrowDownIcon,
CheckIcon, CheckIcon,
ChevronDownIcon, ChevronUpIcon,
CreativeCommonsIcon, CreativeCommonsIcon,
DownloadIcon, DownloadIcon,
ExternalLinkIcon, ExternalLinkIcon,
...@@ -337,7 +337,7 @@ export default function ModelStore() { ...@@ -337,7 +337,7 @@ export default function ModelStore() {
component="button" component="button"
onClick={() => setOrder(order === 'asc' ? 'desc' : 'asc')} onClick={() => setOrder(order === 'asc' ? 'desc' : 'asc')}
fontWeight="lg" fontWeight="lg"
endDecorator={<ChevronDownIcon />} endDecorator={<ChevronUpIcon />}
sx={{ sx={{
'& svg': { '& svg': {
transition: '0.2s', transition: '0.2s',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment