|
1 | | -import React, { Fragment } from 'react' |
2 | | -import styled from 'styled-components' |
3 | | -import PagesContext from '../contexes/PagesContext' |
4 | | -import { nthIndex } from '../util/strings' |
5 | | -import { Link } from 'gatsby' |
| 1 | +import React, { Fragment } from "react" |
| 2 | +import styled from "styled-components" |
| 3 | +import PagesContext from "../contexes/PagesContext" |
| 4 | +import { nthIndex } from "../util/strings" |
| 5 | +import { Link } from "gatsby" |
6 | 6 |
|
7 | | -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' |
8 | | -import { faArrowRight as icon } from '@fortawesome/free-solid-svg-icons' |
9 | | -import withSimpleErrorBoundary from '../util/withSimpleErrorBoundary' |
| 7 | +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" |
| 8 | +import { faArrowRight as icon } from "@fortawesome/free-solid-svg-icons" |
| 9 | +import withSimpleErrorBoundary from "../util/withSimpleErrorBoundary" |
10 | 10 |
|
11 | 11 | const StyledLink = styled(Link)` |
12 | 12 | color: black; |
@@ -47,7 +47,7 @@ class EndOfSubSection extends React.Component { |
47 | 47 | {value => { |
48 | 48 | const currentPath = value.current.path |
49 | 49 | let sectionPath = currentPath |
50 | | - const sectionSeparator = nthIndex(currentPath, '/', 2) |
| 50 | + const sectionSeparator = nthIndex(currentPath, "/", 2) |
51 | 51 | if (sectionSeparator !== -1) { |
52 | 52 | sectionPath = currentPath.substr(0, sectionSeparator) |
53 | 53 | } |
@@ -79,10 +79,10 @@ class EndOfSubSection extends React.Component { |
79 | 79 | } |
80 | 80 | return ( |
81 | 81 | <div> |
82 | | - Pääsit aliluvun loppuun!{' '} |
| 82 | + Pääsit aliluvun loppuun!{" "} |
83 | 83 | {nextPart && ( |
84 | 84 | <Fragment> |
85 | | - Jatka tästä seuraavaan osaan:{' '} |
| 85 | + Jatka tästä seuraavaan osaan:{" "} |
86 | 86 | <ButtonWrapper> |
87 | 87 | <StyledLink to={nextPart.path}> |
88 | 88 | <StyledIcon icon={icon} /> |
|
0 commit comments