Rename isDarkishTheme helper
This commit is contained in:
parent
a4ad42f40d
commit
caff2ce258
@ -1,7 +1,7 @@
|
|||||||
import { Fragment } from 'react';
|
import { Fragment } from 'react';
|
||||||
import { Helmet } from 'react-helmet-async';
|
import { Helmet } from 'react-helmet-async';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { isThemeDarkish } from '../../helpers/utils';
|
import { isDarkishTheme } from '../../helpers/utils';
|
||||||
|
|
||||||
const HeadTagEditor = ({ profile, theme, googleAnalytics, social }) => {
|
const HeadTagEditor = ({ profile, theme, googleAnalytics, social }) => {
|
||||||
return (
|
return (
|
||||||
@ -25,7 +25,7 @@ const HeadTagEditor = ({ profile, theme, googleAnalytics, social }) => {
|
|||||||
<title>Portfolio of {profile.name}</title>
|
<title>Portfolio of {profile.name}</title>
|
||||||
<meta
|
<meta
|
||||||
name="theme-color"
|
name="theme-color"
|
||||||
content={isThemeDarkish(theme) ? '#000000' : '#ffffff'}
|
content={isDarkishTheme(theme) ? '#000000' : '#ffffff'}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<meta name="description" content={profile.bio} />
|
<meta name="description" content={profile.bio} />
|
||||||
|
|||||||
@ -76,7 +76,7 @@ export const ga = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isThemeDarkish = (theme) => {
|
export const isDarkishTheme = (theme) => {
|
||||||
return ['dark', 'halloween', 'forest', 'black', 'luxury', 'dracula'].includes(
|
return ['dark', 'halloween', 'forest', 'black', 'luxury', 'dracula'].includes(
|
||||||
theme
|
theme
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user