Skip to content

Commit 6a9db3e

Browse files
committed
Remove unused stuff
1 parent bb8ad7d commit 6a9db3e

7 files changed

Lines changed: 6 additions & 79 deletions

File tree

src/components/ScheduleTimeline.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/components/Sidebar.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ import React from 'react'
22
import styled from 'styled-components'
33
import Logo from './Logo'
44

5-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
6-
import { faArrowAltCircleLeft } from '@fortawesome/free-solid-svg-icons'
75
import TreeView from './TreeView'
86

9-
const StyledIcon = styled(FontAwesomeIcon)`
10-
//color: rgba(0, 0, 0, 0.54);
11-
`
12-
137
export const SIDEBAR_WIDTH = '20rem'
148

159
const SidebarContainer = styled.div`
@@ -54,7 +48,6 @@ export default class Sidebar extends React.Component {
5448
<SidebarContainer>
5549
<TopContainer>
5650
<Logo />
57-
{/* <StyledIcon icon={faArrowAltCircleLeft} size="2x" /> */}
5851
</TopContainer>
5952
<TreeView data={content2} />
6053
</SidebarContainer>

src/components/TreeView/TreeViewItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const ListItem = styled.li`
2626
const NavigationLink = styled(GatsbyLink)`
2727
border-left: 0.5rem solid white;
2828
width: 100%;
29-
${props => props.active == "t" && `
29+
${props => props.active === "t" && `
3030
border-color: #f75b4b;
3131
background-color: #ffeeed;
3232
`}
@@ -106,7 +106,7 @@ export default class TreeViewItem extends React.Component {
106106
<NavigationLink
107107
to={this.props.item.href}
108108
active={
109-
(this.props.item.href == location.pathname || this.props.item.href == location.pathname.slice(0, -1)) ? 't' : 'f'
109+
(this.props.item.href === location.pathname || this.props.item.href === location.pathname.slice(0, -1)) ? 't' : 'f'
110110
}
111111
>
112112
<ListItem onClick={this.onClick}>

src/pages/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { Fragment } from 'react'
22

33
import Layout from '../components/layout'
44
import Banner from '../components/Banner'
5-
import ScheduleTimeline from '../components/ScheduleTimeline'
65
import MailinglistForm from '../components/MailinglistForm'
76
import Sidebar from '../components/Sidebar'
87
import ContentArea from '../components/ContentArea'

src/pages/opettajille.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React, { Fragment } from 'react'
22

33
import Layout from '../components/layout'
44
import Banner from '../components/Banner'
5-
import ScheduleTimeline from '../components/ScheduleTimeline'
6-
import MailinglistForm from '../components/MailinglistForm'
75
import Sidebar from '../components/Sidebar'
86
import ContentArea from '../components/ContentArea'
97

src/pages/opinto-oikeus.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React, { Fragment } from 'react'
22

33
import Layout from '../components/layout'
44
import Banner from '../components/Banner'
5-
import ScheduleTimeline from '../components/ScheduleTimeline'
6-
import MailinglistForm from '../components/MailinglistForm'
75
import Sidebar from '../components/Sidebar'
86
import ContentArea from '../components/ContentArea'
97

@@ -51,8 +49,8 @@ const IndexPage = () => (
5149
Yhteishaun hakuaika on 20.3.-3.4.2019. Hakuaika päättyy klo 15.00.
5250
</p>
5351
<p>
54-
Löydät lisätietoja sähköisestä hausta korkeakouluihin Opintopolku.fi
55-
-portaalista 29.10.2018 alkaen.
52+
Löydät lisätietoja sähköisestä hausta korkeakouluihin Opintopolku.fi
53+
-portaalista 29.10.2018 alkaen.
5654
</p>
5755
</section>
5856
</Layout>

src/util/trackHeight.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Used for animations
2-
import { injectGlobal } from "styled-components";
2+
import { createGlobalStyle } from "styled-components";
33

4-
injectGlobal`
4+
createGlobalStyle`
55
.render-element-off-screen-for-measurement {
66
position: absolute !important;
77
top: -100000px !important;

0 commit comments

Comments
 (0)