1 parent 9b3be9d commit 990d812Copy full SHA for 990d812
3 files changed
src/assets/cv/nguyenminhchau.pdf
226 KB
src/feature/main/About/index.tsx
@@ -8,6 +8,7 @@ import styles from "./about.module.scss";
8
import {useNavigate} from "react-router-dom";
9
import { CV } from "common/path";
10
import {useTranslation} from "react-i18next";
11
+import cvPdf from "../../../assets/cv/nguyenminhchau.pdf";
12
13
enum refNames {
14
about = "about",
@@ -43,7 +44,7 @@ const About: FC = () => {
43
44
};
45
46
const handleMoveViewCV = () => {
- navigate(CV);
47
+ window.open(cvPdf, '_blank')
48
}
49
50
return (
src/react-app-env.d.ts
@@ -1 +1,6 @@
1
/// <reference types="react-scripts" />
2
+
3
+declare module '*.pdf' {
4
+ const src: string;
5
+ export default src;
6
+}
0 commit comments