@@ -2,18 +2,13 @@ import React, { useCallback, useState } from "react";
22import "./index.css" ;
33import { useAppDispatch , useAppSelector } from "./hooks" ;
44import { toggleMod , enableAll , disableAll , setModLoadOrder , resetModLoadOrder } from "./appSlice" ;
5- import classNames from "classnames" ;
65import { Alert , Tooltip } from "flowbite-react" ;
7- import { formatDistanceToNow } from "date-fns" ;
8- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
9- import { faGrip , faEraser , faCamera , faFileArchive } from "@fortawesome/free-solid-svg-icons" ;
106import { getFilteredMods , sortByNameAndLoadOrder } from "./modSortingHelpers" ;
117import { FloatingOverlay } from "@floating-ui/react-dom-interactions" ;
128import ModDropdown from "./ModDropdown" ;
139import { isModAlwaysEnabled } from "./modsHelpers" ;
1410import * as modRowSorting from "./utility/modRowSorting" ;
1511import { SortingType } from "./utility/modRowSorting" ;
16- import { HiOutlineCollection } from "react-icons/hi" ;
1712import ModRow from "./ModRow" ;
1813
1914let currentDragTarget : Element ;
@@ -42,11 +37,10 @@ export default function ModRows() {
4237 const filter = useAppSelector ( ( state ) => state . app . filter ) ;
4338 const hiddenMods = useAppSelector ( ( state ) => state . app . hiddenMods ) ;
4439 const alwaysEnabledMods = useAppSelector ( ( state ) => state . app . alwaysEnabledMods ) ;
45- const isDev = useAppSelector ( ( state ) => state . app . isDev ) ;
4640 const isAuthorEnabled = useAppSelector ( ( state ) => state . app . isAuthorEnabled ) ;
4741 const areThumbnailsEnabled = useAppSelector ( ( state ) => state . app . areThumbnailsEnabled ) ;
4842
49- const [ sortingType , setSortingType ] = useState < SortingType > ( SortingType . IsEnabled ) ;
43+ const [ sortingType , setSortingType ] = useState < SortingType > ( SortingType . Ordered ) ;
5044 const [ isDropdownOpen , setIsDropdownOpen ] = useState < boolean > ( false ) ;
5145 const [ contextMenuMod , setContextMenuMod ] = useState < Mod > ( ) ;
5246 const [ dropdownReferenceElement , setDropdownReferenceElement ] = useState < HTMLDivElement > ( ) ;
@@ -410,7 +404,11 @@ export default function ModRows() {
410404 placement = "right"
411405 content = "Mods with lower order have priority, don't change unless you really know what you're doing, right click on mod to reset or here to reset all"
412406 >
413- < span className = "text-center w-full" > Order</ span >
407+ < span
408+ className = { `text-center w-full ${ modRowSorting . isOrderSort ( sortingType ) && "font-semibold" } ` }
409+ >
410+ Order
411+ </ span >
414412 </ Tooltip >
415413 </ div >
416414 < div
@@ -421,7 +419,11 @@ export default function ModRows() {
421419 >
422420 { modRowSorting . isEnabledSort ( sortingType ) && modRowSorting . getSortingArrow ( sortingType ) }
423421 < Tooltip placement = "right" content = "Right click to enable or disable all mods" >
424- < span className = "text-center w-full" > Enabled</ span >
422+ < span
423+ className = { `text-center w-full ${ modRowSorting . isEnabledSort ( sortingType ) && "font-semibold" } ` }
424+ >
425+ Enabled
426+ </ span >
425427 </ Tooltip >
426428 </ div >
427429 < div
@@ -437,15 +439,15 @@ export default function ModRows() {
437439 onClick = { ( ) => modRowSorting . onPackSort ( setSortingType ) }
438440 >
439441 { modRowSorting . isPackNameSort ( sortingType ) && modRowSorting . getSortingArrow ( sortingType ) }
440- Pack
442+ < span className = { ` ${ modRowSorting . isPackNameSort ( sortingType ) && "font-semibold" } ` } > Pack</ span >
441443 </ div >
442444
443445 < div
444446 className = "flex grid-area-humanName place-items-center pl-1 mod-row-header"
445447 onClick = { ( ) => modRowSorting . onNameSort ( setSortingType ) }
446448 >
447449 { modRowSorting . isHumanNameSort ( sortingType ) && modRowSorting . getSortingArrow ( sortingType ) }
448- Name
450+ < span className = { ` ${ modRowSorting . isHumanNameSort ( sortingType ) && "font-semibold" } ` } > Name</ span >
449451 </ div >
450452 < div
451453 className = {
@@ -455,14 +457,16 @@ export default function ModRows() {
455457 onClick = { ( ) => modRowSorting . onAuthorSort ( setSortingType ) }
456458 >
457459 { modRowSorting . isAuthorSort ( sortingType ) && modRowSorting . getSortingArrow ( sortingType ) }
458- Author
460+ < span className = { ` ${ modRowSorting . isAuthorSort ( sortingType ) && "font-semibold" } ` } > Author</ span >
459461 </ div >
460462 < div
461463 className = "flex grid-area-autohide place-items-center pl-1 mod-row-header rounded-tr-xl"
462464 onClick = { ( ) => modRowSorting . onLastUpdatedSort ( setSortingType ) }
463465 >
464466 { modRowSorting . isLastUpdatedSort ( sortingType ) && modRowSorting . getSortingArrow ( sortingType ) }
465- Last Updated
467+ < span className = { `${ modRowSorting . isLastUpdatedSort ( sortingType ) && "font-semibold" } ` } >
468+ Last Updated
469+ </ span >
466470 </ div >
467471
468472 { mods
0 commit comments