We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dfe2aa commit 49fa20eCopy full SHA for 49fa20e
src/header/newCvLink/NewCvLink.js
@@ -3,16 +3,22 @@ import Cookies from "universal-cookie";
3
import {NY_CV_URL} from "../../fasitProperties";
4
import "./NewCvLink.less";
5
import logAmplitudeEvent from "../../amplitudeTracker";
6
+import {useEffect} from "react";
7
8
const NewCvLink = () => {
9
+
10
+ useEffect(() => {
11
+ logAmplitudeEvent('Showed New CV Link', {});
12
+ }, []);
13
14
const cookies = new Cookies();
15
16
const onNewCvNavigationClick = () => () => {
17
cookies.set('useNewCv', 'true', {
18
path: '/',
19
maxAge: (604800 * 8), // 8 weeks
20
domain: '.nav.no'
- })
21
+ });
22
23
logAmplitudeEvent('Use new CV', {});
24
};
0 commit comments