Update utils.jsx
This commit is contained in:
parent
d76c4fd52d
commit
d79bec006a
@ -1,6 +1,5 @@
|
||||
import config from '../config';
|
||||
import colors from './colors.json';
|
||||
import { hotjar } from 'react-hotjar';
|
||||
import config from '../ezprofile.config';
|
||||
import colors from '../data/colors.json';
|
||||
|
||||
export const getInitialTheme = () => {
|
||||
if (config.themeConfig.disableSwitch) {
|
||||
@ -86,13 +85,3 @@ export const isThemeDarkish = (theme) => {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
export const setupHotjar = () => {
|
||||
if (config.hotjar?.id) {
|
||||
let snippetVersion = config.hotjar?.snippetVersion
|
||||
? config.hotjar?.snippetVersion
|
||||
: 6;
|
||||
|
||||
hotjar.initialize(config.hotjar.id, snippetVersion);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user