diff options
author | crupest <crupest@outlook.com> | 2023-08-28 01:41:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-08-28 01:41:41 +0800 |
commit | b66a57071316434356e77e294ec22181e4db54d5 (patch) | |
tree | 2c000b459165834562cf420990e683e78fadae6c /FrontEnd/src/components/LoadFailReload.tsx | |
parent | 256cc9592a3f31fc392e1ccdb699aa206b7b47ce (diff) | |
download | timeline-b66a57071316434356e77e294ec22181e4db54d5.tar.gz timeline-b66a57071316434356e77e294ec22181e4db54d5.tar.bz2 timeline-b66a57071316434356e77e294ec22181e4db54d5.zip |
...
Diffstat (limited to 'FrontEnd/src/components/LoadFailReload.tsx')
-rw-r--r-- | FrontEnd/src/components/LoadFailReload.tsx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/FrontEnd/src/components/LoadFailReload.tsx b/FrontEnd/src/components/LoadFailReload.tsx new file mode 100644 index 00000000..81ba1f67 --- /dev/null +++ b/FrontEnd/src/components/LoadFailReload.tsx @@ -0,0 +1,37 @@ +import * as React from "react"; +import { Trans } from "react-i18next"; + +export interface LoadFailReloadProps { + className?: string; + style?: React.CSSProperties; + onReload: () => void; +} + +const LoadFailReload: React.FC<LoadFailReloadProps> = ({ + onReload, + className, + style, +}) => { + return ( + <Trans + i18nKey="loadFailReload" + parent="div" + className={className} + style={style} + > + 0 + <a + href="#" + onClick={(e) => { + onReload(); + e.preventDefault(); + }} + > + 1 + </a> + 2 + </Trans> + ); +}; + +export default LoadFailReload; |