mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Update utils.jsx
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import config from '../config';
|
import config from '../ezprofile.config';
|
||||||
import colors from './colors.json';
|
import colors from '../data/colors.json';
|
||||||
import { hotjar } from 'react-hotjar';
|
|
||||||
|
|
||||||
export const getInitialTheme = () => {
|
export const getInitialTheme = () => {
|
||||||
if (config.themeConfig.disableSwitch) {
|
if (config.themeConfig.disableSwitch) {
|
||||||
@@ -86,13 +85,3 @@ export const isThemeDarkish = (theme) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const setupHotjar = () => {
|
|
||||||
if (config.hotjar?.id) {
|
|
||||||
let snippetVersion = config.hotjar?.snippetVersion
|
|
||||||
? config.hotjar?.snippetVersion
|
|
||||||
: 6;
|
|
||||||
|
|
||||||
hotjar.initialize(config.hotjar.id, snippetVersion);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user