Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bravomartin committed Jul 1, 2021
1 parent 36cedce commit 89c6f04
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs.js
@@ -1,5 +1,5 @@
import React, { memo } from 'react';
import { useLocalization, LocalizedLink as Link } from 'gatsby-theme-i18n';
import { LocalizedLink as Link } from 'gatsby-theme-i18n';
import classnames from 'classnames';

import { titleCase } from '../utils';
Expand Down
1 change: 1 addition & 0 deletions src/components/Button.js
Expand Up @@ -32,6 +32,7 @@ export const Button = ({
className={classNames}
href={href}
target={target}
rel={target === '_blank' ? 'noreferrer' : null}
tabIndex={tabIndex ? tabIndex : 0}>
{children}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.js
Expand Up @@ -135,7 +135,7 @@ const Navbar = ({ siteTitle, scrolled }) => {
})}>
{item.href ? (
item.href.startsWith('https') ? (
<a target="_blank" href={item.href}>
<a target="_blank" rel="noreferrer" href={item.href}>
{intl.formatMessage({ id: item.name })}
</a>
) : (
Expand Down
9 changes: 6 additions & 3 deletions src/components/Topbar.js
Expand Up @@ -50,9 +50,12 @@ const Topbar = ({ show }) => {
</li>
))}
</ul>
{/* <LanguageSelector
className={classnames(css.languageSelector, grid.col)}
/>*/}
{/* disabled until we have a second language */}
{false && (
<LanguageSelector
className={classnames(css.languageSelector, grid.col)}
/>
)}
</div>
</div>
);
Expand Down
2 changes: 0 additions & 2 deletions src/components/sketch/Sketch.js
Expand Up @@ -5,8 +5,6 @@ import SketchGraphic from './SketchGraphic';
import SketchCode from './SketchCode';
import Button from '../Button';

import { localStorage } from '../../utils';

import css from './Sketch.module.css';
import grid from '../../styles/grid.module.css';

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/examples.js
Expand Up @@ -124,5 +124,5 @@ export const useTrail = (example) => {
}

return trail;
}, []);
}, [intl, example]);
};
2 changes: 1 addition & 1 deletion src/hooks/reference.js
Expand Up @@ -215,5 +215,5 @@ export const useTrail = (libraryName, category, subcategory, classanchor) => {
}

return trail;
}, [intl, libraryName]);
}, [intl, libraryName, classanchor, category, subcategory]);
};
3 changes: 2 additions & 1 deletion src/hooks/tutorials.js
Expand Up @@ -7,6 +7,7 @@ import { useIntl } from 'react-intl';
**/
export const useTrail = (example) => {
const intl = useIntl();

return useMemo(() => {
return [
intl.formatMessage({ id: 'learn' }),
Expand All @@ -19,5 +20,5 @@ export const useTrail = (example) => {
label: intl.formatMessage({ id: 'textTutorials' })
}
];
}, []);
}, [intl]);
};
23 changes: 18 additions & 5 deletions src/pages/index.js
Expand Up @@ -186,32 +186,45 @@ const IndexPage = ({ data }) => {
<li>
<a
target="_blank"
rel="noreferrer"
href="https://www.creativeapplications.net/category/processing/">
Creative Applications
</a>
</li>
<li>
<a target="_blank" href="https://openprocessing.org/">
<a
target="_blank"
rel="noreferrer"
href="https://openprocessing.org/">
OpenProcessing
</a>
</li>
<li>
<a target="_blank" href="https://fyprocessing.tumblr.com/">
<a
target="_blank"
rel="noreferrer"
href="https://fyprocessing.tumblr.com/">
For your Processing
</a>
</li>
<li>
<a target="_blank" href="https://www.reddit.com/r/processing/">
<a
target="_blank"
rel="noreferrer"
href="https://www.reddit.com/r/processing/">
Processing Subreddit
</a>
</li>
<li>
<a target="_blank" href="https://vimeo.com/groups/processing">
<a
target="_blank"
rel="noreferrer"
href="https://vimeo.com/groups/processing">
Vimeo
</a>
</li>
<li>
<a target="_blank" href="http://sketchpad.cc/">
<a target="_blank" rel="noreferrer" href="http://sketchpad.cc/">
Studio Sketchpad
</a>
</li>
Expand Down

0 comments on commit 89c6f04

Please sign in to comment.