From 2f426398840d547daac32f952d64a6d5ad8edd58 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 21 Feb 2020 11:09:38 +0100 Subject: [PATCH] fix aria issues and run prettier --- gatsby-config.js | 2 +- src/components/CodeExamples/CodeExamples.js | 10 +++---- src/components/HomeUpload/HomeUpload.js | 4 +-- src/components/Mailing/Mailing.js | 8 ++++- src/svg/TopSwoosh.js | 33 ++++----------------- 5 files changed, 20 insertions(+), 37 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index ae8a5d2a..10b81067 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -3,7 +3,7 @@ module.exports = { title: `Skynet`, description: `Skynet is a decentralized file sharing and content distribution protocol.`, author: `Nebulous`, - siteUrl: 'https://siasky.net' + siteUrl: `https://siasky.net` }, plugins: [ `gatsby-plugin-sass`, diff --git a/src/components/CodeExamples/CodeExamples.js b/src/components/CodeExamples/CodeExamples.js index d7573773..c2f28b25 100644 --- a/src/components/CodeExamples/CodeExamples.js +++ b/src/components/CodeExamples/CodeExamples.js @@ -1,15 +1,15 @@ import React, { useState } from "react"; import classNames from "classnames"; import { Light as SyntaxHighlighter } from "react-syntax-highlighter"; -import { javascript, go, python, bash } from 'react-syntax-highlighter/dist/esm/languages/hljs'; +import { javascript, go, python, bash } from "react-syntax-highlighter/dist/esm/languages/hljs"; import Colors from "./Colors"; import * as snippets from "./Code"; import "./CodeExamples.scss"; -SyntaxHighlighter.registerLanguage('javascript', javascript); -SyntaxHighlighter.registerLanguage('go', go); -SyntaxHighlighter.registerLanguage('python', python); -SyntaxHighlighter.registerLanguage('bash', bash); +SyntaxHighlighter.registerLanguage("javascript", javascript); +SyntaxHighlighter.registerLanguage("go", go); +SyntaxHighlighter.registerLanguage("python", python); +SyntaxHighlighter.registerLanguage("bash", bash); export default function CodeExamples() { const [active, setActive] = useState(1); diff --git a/src/components/HomeUpload/HomeUpload.js b/src/components/HomeUpload/HomeUpload.js index 152673a1..9cf4cb63 100644 --- a/src/components/HomeUpload/HomeUpload.js +++ b/src/components/HomeUpload/HomeUpload.js @@ -96,8 +96,8 @@ export default class HomeUpload extends Component {

Paste the link to retrieve your file

- -
diff --git a/src/components/Mailing/Mailing.js b/src/components/Mailing/Mailing.js index 4b4ab788..a857b99f 100644 --- a/src/components/Mailing/Mailing.js +++ b/src/components/Mailing/Mailing.js @@ -20,7 +20,13 @@ const CustomForm = ({ status, message, onValidated, light, id }) => { return (
e.preventDefault()}> - (email = node)} type="email" placeholder="Email Address" validate="true" /> + (email = node)} + type="email" + placeholder="Email Address" + validate="true" + aria-labelledby="Email Address" + />
(user = node)} type="checkbox" id={id} /> diff --git a/src/svg/TopSwoosh.js b/src/svg/TopSwoosh.js index adcdad8f..16a1335e 100644 --- a/src/svg/TopSwoosh.js +++ b/src/svg/TopSwoosh.js @@ -10,29 +10,10 @@ export default function TopSwoosh({ ...props }) { {...props} > - - - - + + + + - +