Replace new with recently updated
This commit is contained in:
parent
612066d96c
commit
9340d827d9
|
@ -102,8 +102,8 @@ export default function Home() {
|
|||
const HOME_SECTIONS = [
|
||||
{ label: 'Daily movers', id: 'daily-movers' },
|
||||
{ label: 'Trending', id: 'score' },
|
||||
{ label: 'New', id: 'newest' },
|
||||
{ label: 'New for you', id: 'new-for-you' },
|
||||
{ label: 'Recently updated', id: 'recently-updated-for-you' },
|
||||
]
|
||||
|
||||
export const getHomeItems = (groups: Group[], sections: string[]) => {
|
||||
|
@ -149,6 +149,16 @@ function renderSection(
|
|||
user={user}
|
||||
/>
|
||||
)
|
||||
if (id === 'recently-updated-for-you')
|
||||
return (
|
||||
<SearchSection
|
||||
key={id}
|
||||
label={label}
|
||||
sort={'last-updated'}
|
||||
pill="personal"
|
||||
user={user}
|
||||
/>
|
||||
)
|
||||
const sort = SORTS.find((sort) => sort.value === id)
|
||||
if (sort)
|
||||
return (
|
||||
|
@ -265,14 +275,6 @@ function DailyMoversSection(props: { userId: string | null | undefined }) {
|
|||
)
|
||||
}
|
||||
|
||||
function SearchRow() {
|
||||
return (
|
||||
<SiteLink href="/search" className="flex-1 hover:no-underline">
|
||||
<input className="input input-bordered w-full" placeholder="Search" />
|
||||
</SiteLink>
|
||||
)
|
||||
}
|
||||
|
||||
function DailyStats(props: {
|
||||
user: User | null | undefined
|
||||
className?: string
|
||||
|
|
Loading…
Reference in New Issue
Block a user