aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/timeline/index.tsx
blob: c5bfd7ab02924dc149e943016582b7093357456e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from "react";
import { useParams } from "react-router";

import TimelinePageTemplate from "../timeline-common/TimelinePageTemplate";
import TimelineCard from "./TimelineCard";

const TimelinePage: React.FC = () => {
  const { name } = useParams<{ name: string }>();

  const [reloadKey, setReloadKey] = React.useState<number>(0);

  return (
    <TimelinePageTemplate
      timelineName={name}
      notFoundI18nKey="timeline.timelineNotExist"
      reloadKey={reloadKey}
      CardComponent={TimelineCard}
      onReload={() => setReloadKey(reloadKey + 1)}
    />
  );
};

export default TimelinePage;