Skip to content

Commit

Permalink
Use external hotjarNPS.css styles + add eslint prettier (#218)
Browse files Browse the repository at this point in the history
* use external bloom styles

* add eslint-config-prettier dev dep
  • Loading branch information
annarhughes authored Nov 6, 2023
1 parent e6e6e62 commit 76a216a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 216 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^7.8.1",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.6",
Expand Down
14 changes: 5 additions & 9 deletions src/components/Head.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ import PropTypes from 'prop-types';
import React from 'react';
import isBrowser from '../shared/browserCheck';

const Head = ({
title, description, ogDescription, ogImage, ogTitle, ogImageAlt,
}) => (
const Head = ({ title, description, ogDescription, ogImage, ogTitle, ogImageAlt }) => (
<NextHead>
<title key="title">
{title}
{' '}
| YSM
</title>
<title key="title">{title} | YSM</title>
<link rel="icon" href="/favicon.png" />
<link href="https://bloom.chayn.co/hotjarNPS.css" rel="stylesheet" type="text/css" />
<meta name="description" content={description} />
<meta property="og:url" content={isBrowser ? window.location.href : null} />
<meta property="og:type" content="website" />
Expand All @@ -38,7 +33,8 @@ Head.propTypes = {

Head.defaultProps = {
ogTitle: null,
description: 'Browse accessible resources curated by a team of survivors. Save what you love and come back anytime.',
description:
'Browse accessible resources curated by a team of survivors. Save what you love and come back anytime.',
ogDescription: null,
ogImage: '/logo.png',
ogImageAlt: 'Line drawing',
Expand Down
1 change: 0 additions & 1 deletion src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { axiosGet } from '../shared/axios';
import isBrowser from '../shared/browserCheck';
import useWindowDimensions from '../shared/dimensions';
import { useStore } from '../store/store';
import '../styles/hotjarNPS.css';
import theme from '../styles/theme';

const Footer = dynamic(() => import('../components/Footer'), { ssr: false });
Expand Down
206 changes: 0 additions & 206 deletions src/styles/hotjarNPS.css

This file was deleted.

0 comments on commit 76a216a

Please sign in to comment.