File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121 FloatingPortal ,
2222} from "@floating-ui/react" ;
2323import { PiCaretDownBold } from "react-icons/pi" ;
24- import { addDays } from "date-fns" ;
24+ import { subDays } from "date-fns" ;
2525import { setSearchParams } from "~/util/url" ;
2626import he from "he" ;
2727
@@ -75,7 +75,7 @@ function InfiniteHits(props: UseInfiniteHitsProps) {
7575
7676 const title = hierarchy ? hierarchy . join ( " > " ) : "Documentation" ;
7777 const today = new Date ( ) ;
78- const futureDate = addDays ( today , item . lastModified ) ;
78+ const futureDate = subDays ( today , item . lastModified ) ;
7979 const options : Intl . DateTimeFormatOptions = {
8080 year : "numeric" ,
8181 month : "long" ,
@@ -93,7 +93,7 @@ function InfiniteHits(props: UseInfiniteHitsProps) {
9393 < Highlight attribute = "content" hit = { item } />
9494 </ p >
9595 { item . lastModified && (
96- < span className = "" >
96+ < span className = "text-cl1-gray-4! dark:text-cl1-gray-7! mt-2 text-sm " >
9797 { futureDate . toLocaleDateString ( "en-US" , options ) }
9898 </ span >
9999 ) }
You can’t perform that action at this time.
0 commit comments