From caff2ce258d647ff5c8549133155b31e1b4746bb Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Mon, 18 Jul 2022 12:13:23 +0600 Subject: [PATCH] Rename `isDarkishTheme` helper --- src/components/head-tag-editor/index.jsx | 4 ++-- src/helpers/utils.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/head-tag-editor/index.jsx b/src/components/head-tag-editor/index.jsx index bd9f767..9ca6b56 100644 --- a/src/components/head-tag-editor/index.jsx +++ b/src/components/head-tag-editor/index.jsx @@ -1,7 +1,7 @@ import { Fragment } from 'react'; import { Helmet } from 'react-helmet-async'; import PropTypes from 'prop-types'; -import { isThemeDarkish } from '../../helpers/utils'; +import { isDarkishTheme } from '../../helpers/utils'; const HeadTagEditor = ({ profile, theme, googleAnalytics, social }) => { return ( @@ -25,7 +25,7 @@ const HeadTagEditor = ({ profile, theme, googleAnalytics, social }) => { Portfolio of {profile.name} diff --git a/src/helpers/utils.jsx b/src/helpers/utils.jsx index dd8bf05..a1fe245 100644 --- a/src/helpers/utils.jsx +++ b/src/helpers/utils.jsx @@ -76,7 +76,7 @@ export const ga = { }, }; -export const isThemeDarkish = (theme) => { +export const isDarkishTheme = (theme) => { return ['dark', 'halloween', 'forest', 'black', 'luxury', 'dracula'].includes( theme );