Skip to content
Snippets Groups Projects
Unverified Commit 09f8d45b authored by ali asaria's avatar ali asaria Committed by GitHub
Browse files

Merge pull request #298 from transformerlab/fix/sort-documents-by-name

You can now sort documents in the documents component by name
parents 50200ec6 da4ce032
No related branches found
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