Skip to content

Commit a51a68b

Browse files
authored
Fix React errors and warnings (#103)
There were some errors in the console for the website. While these don't seem to affect the actual website, this fixes the issues and reduces the noise in the console. Signed-off-by: Vihang Mehta <vihang@pixielabs.ai> Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>
1 parent 31c1a8d commit a51a68b

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ public
66
.DS_Store
77
.DS_Store?
88
.vscode/settings.json
9+
10+
# Local Netlify folder
11+
.netlify

src/components/footer/footer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import React from 'react';
2020
import PropTypes from 'prop-types';
21-
import { Link } from 'gatsby';
2221
import * as styles from './footer.module.scss';
2322
import cncfLogo from '../../images/footer/cncf-white.svg';
2423
import github from '../../images/footer/github-icon.svg';
@@ -35,11 +34,11 @@ const Footer = ({ whiteFooter }) => (
3534
<img src={cncfLogo} alt='CNCF logo' className={styles.logo} />
3635
<div className={styles.copyrightBar}>
3736
<div className={styles.verticalCenter}>
38-
<Link to='https://www.linuxfoundation.org/terms' target='_blank' rel='noreferrer' className={styles.mutedLink}>Terms of Service</Link>
37+
<a href='https://www.linuxfoundation.org/terms' target='_blank' rel='noreferrer' className={styles.mutedLink}>Terms of Service</a>
3938
<span>
4039
|
4140
</span>
42-
<Link to='https://www.linuxfoundation.org/privacy' target='_blank' rel='noreferrer' className={styles.mutedLink}>Privacy Policy</Link>
41+
<a href='https://www.linuxfoundation.org/privacy' target='_blank' rel='noreferrer' className={styles.mutedLink}>Privacy Policy</a>
4342
</div>
4443
<div className={styles.centerContent}>
4544
Copyright © 2018- The Pixie Authors. All Rights Reserved.

src/components/header/header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ const Header = ({ whiteHeader, transparentMenu }) => {
227227
</a>
228228
</li>
229229
</ul>
230-
<Link to='https://www.linuxfoundation.org/terms' target='_blank' rel='noreferrer'>Terms of Service</Link>
230+
<a href='https://www.linuxfoundation.org/terms' target='_blank' rel='noreferrer'>Terms of Service</a>
231231
<br />
232-
<Link to='https://www.linuxfoundation.org/privacy' target='_blank' rel='noreferrer'>Privacy Policy</Link>
232+
<a href='https://www.linuxfoundation.org/privacy' target='_blank' rel='noreferrer'>Privacy Policy</a>
233233
</div>
234234
</div>
235235
<IconButton onClick={() => setOpen(true)} className='hide-desktop'>

src/components/seo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const SEO = ({
147147
};
148148

149149
SEO.defaultProps = {
150-
meta: [],
150+
meta: {},
151151
description: '',
152152
type: 'website',
153153
};

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const Homepage = () => {
136136
<div className='container'>
137137
<h2>
138138
<div className={`${styles.marker} hide-mobile hide-tablet`} style={{ margin: '20px auto' }} />
139-
<Button className={`${styles.button} block hide-desktop`} to='https://docs.px.dev/installing-pixie/install-guides/' target='_blank' rel='noreferrer'>
139+
<Button className={`${styles.button} block hide-desktop`} link='https://docs.px.dev/installing-pixie/install-guides/' target='_blank' rel='noreferrer'>
140140
GET STARTED
141141
</Button>
142142
Why use Pixie?

0 commit comments

Comments
 (0)