Rename "Details" to "About"

This commit is contained in:
Austin Chen 2022-06-24 18:41:02 -05:00
parent da81035e58
commit 3123021d94
2 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ const groupCollection = collection(db, 'groups')
export function groupPath( export function groupPath(
groupSlug: string, groupSlug: string,
subpath?: 'edit' | 'questions' | 'details' | 'chat' subpath?: 'edit' | 'questions' | 'about' | 'chat'
) { ) {
return `/group/${groupSlug}${subpath ? `/${subpath}` : ''}` return `/group/${groupSlug}${subpath ? `/${subpath}` : ''}`
} }

View File

@ -94,7 +94,7 @@ async function toTopUsers(userScores: { [userId: string]: number }) {
export async function getStaticPaths() { export async function getStaticPaths() {
return { paths: [], fallback: 'blocking' } return { paths: [], fallback: 'blocking' }
} }
const groupSubpages = [undefined, 'chat', 'questions', 'details'] as const const groupSubpages = [undefined, 'chat', 'questions', 'about'] as const
export default function GroupPage(props: { export default function GroupPage(props: {
group: Group | null group: Group | null
@ -177,7 +177,7 @@ export default function GroupPage(props: {
</Col> </Col>
) )
const detailsTab = ( const aboutTab = (
<Col> <Col>
<GroupOverview <GroupOverview
group={group} group={group}
@ -225,7 +225,7 @@ export default function GroupPage(props: {
</Col> </Col>
<Tabs <Tabs
defaultIndex={page === 'details' ? 2 : page === 'questions' ? 1 : 0} defaultIndex={page === 'about' ? 2 : page === 'questions' ? 1 : 0}
tabs={[ tabs={[
{ {
title: 'Chat', title: 'Chat',
@ -269,9 +269,9 @@ export default function GroupPage(props: {
href: groupPath(group.slug, 'questions'), href: groupPath(group.slug, 'questions'),
}, },
{ {
title: 'Details', title: 'About',
content: detailsTab, content: aboutTab,
href: groupPath(group.slug, 'details'), href: groupPath(group.slug, 'about'),
}, },
]} ]}
/> />