blob: 70b4f60fcb3f9b704a66fec43bc2a492a43f2e8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import React from "react";
import { useParams } from "react-router";
import TimelinePageTemplate from "../timeline-common/TimelinePageTemplate";
import UserCard from "./UserCard";
import "./index.css";
const UserPage: React.FC = () => {
const { username } = useParams<{ username: string }>();
const [reloadKey, setReloadKey] = React.useState<number>(0);
let dialogElement: React.ReactElement | undefined;
return (
<>
<TimelinePageTemplate
timelineName={`@${username}`}
notFoundI18nKey="timeline.userNotExist"
reloadKey={reloadKey}
onReload={() => setReloadKey(reloadKey + 1)}
CardComponent={UserCard}
/>
{dialogElement}
</>
);
};
export default UserPage;
|