Skip to content

Commit 9fd6c0c

Browse files
committed
fix: users path to plural as others are
1 parent fb327a7 commit 9fd6c0c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

plugins/qeta/src/components/HomePage/HomePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const HomePage = () => (
3838
<Route path="/ask" element={<AskPage />} />
3939
<Route path="/questions/:id" element={<QuestionPage />} />
4040
<Route path="/tags/:tag" element={<TagPage />} />
41-
<Route path="/user/*" element={<UserPage />} />
41+
<Route path="/users/*" element={<UserPage />} />
4242
</Routes>
4343
</Page>
4444
);

plugins/qeta/src/components/HomePage/QuestionList/QuestionListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const QuestionListItem = (props: { question: QuestionResponse }) => {
2424
))}
2525
<Typography variant="body2" display="block">
2626
By{' '}
27-
<Link href={`/qeta/user/${question.author}`}>{question.author}</Link>{' '}
27+
<Link href={`/qeta/users/${question.author}`}>{question.author}</Link>{' '}
2828
<RelativeTime
2929
value={question.created}
3030
titleFormat="YYYY/MM/DD HH:mm"

plugins/qeta/src/components/QuestionPage/AnswerCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const AnswerCard = (props: {
3232
</Typography>
3333
<Box>
3434
By{' '}
35-
<Link href={`/qeta/user/${answer.author}`}>{answer.author}</Link>
35+
<Link href={`/qeta/users/${answer.author}`}>{answer.author}</Link>
3636
</Box>
3737
</Grid>
3838
</Grid>

plugins/qeta/src/components/QuestionPage/QuestionCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const QuestionCard = (props: { question: QuestionResponse }) => {
4040
))}
4141
<Box>
4242
By{' '}
43-
<Link href={`/qeta/user/${question.author}`}>
43+
<Link href={`/qeta/users/${question.author}`}>
4444
{question.author}
4545
</Link>
4646
</Box>

0 commit comments

Comments
 (0)