Skip to content

Commit 11ef8f8

Browse files
author
Tiko
committed
removed unused files, add typing to Components without props and general eslint fixing
1 parent 9c03280 commit 11ef8f8

36 files changed

+66
-276
lines changed

src/components/Case.tsx

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

src/containers/Client.tsx

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

src/containers/Container.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ const Container =
1313
padding: 1em ${containerWidth.xs};
1414
display: flex;
1515
flex-direction: column;
16-
align-items: ${(props) =>
17-
props.align || 'inherit'}; // TODO: check if the prop is still needed
16+
align-items: inherit;
1817
@media (${mediaQueryMin.sm}) {
1918
padding: 0 ${containerWidth.sm};
2019
}

src/containers/Credits.tsx

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

src/containers/Deliverables.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
33
import theme from '../styles/theme';
4+
// TODO: move to ContentBlocks folder
45

56
const plusBullet = require('../images/icons/ui/plus-bullet.svg');
67

src/containers/Process/Process.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ const step1 = require('../../images/img/content/workflow/analyze.svg');
77
const step2 = require('../../images/img/content/workflow/strategize.svg');
88
const step3 = require('../../images/img/content/workflow/realize.svg');
99

10-
const Process = () => (
10+
const Process: React.FC<Record<string, never>> = () => (
1111
<Container>
1212
<Row gutterWidth={30}>
1313
<Step md={5.55} lg={3.55}>
1414
<ProcessStepImage src={step1} alt="Analyze" />
1515
<TextBlock subtitle="Stap 1" headingType="h3" title="Analyze">
16-
{/* classname="padded" */}
1716
Voordat we starten met ontwikkelen, maken we eerst een
1817
gedetailleerde analyse. Dit stelt ons in staat om een helder
1918
en volledig overzicht te krijgen van de huidige situatie.

src/containers/TeamMember/TeamMember.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ const TeamMember: React.FC<TeamMemberProps> = ({
3333
title,
3434
img,
3535
alt,
36-
link = undefined,
37-
email = undefined,
38-
github = undefined,
39-
instagram = undefined,
40-
facebook = undefined,
41-
twitter = undefined,
42-
linkedin = undefined,
36+
link,
37+
email,
38+
github,
39+
instagram,
40+
facebook,
41+
twitter,
42+
linkedin,
4343
}) => {
4444
return (
4545
<TeamMemberContainer>

src/containers/TextBlock/TextBlock.components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface SubtitleBaseProps {
88
}
99
const SubtitleBase: React.FC<SubtitleBaseProps> = ({
1010
className = '',
11-
children = undefined,
11+
children,
1212
}) => <div className={`subtitle ${className}`}>{children}</div>;
1313

1414
export const Figure = styled.figure`

src/containers/TextBlock/TextBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const TextBlock: React.FC<TextBlockProps> = ({
8383
headingType = 'h1',
8484
href,
8585
button,
86-
useGatsbyLink = false,
86+
useGatsbyLink,
8787
children,
8888
}) => {
8989
return (

src/containers/Thumbnails/PostThumbnail.components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ interface ThumbnailImgProps {
9898
export const ThumbnailImg: React.FC<ThumbnailImgProps> = ({
9999
img,
100100
alt,
101-
big = false,
101+
big,
102102
}) => (
103103
<ThumbnailImgBase big={big}>
104104
<ThumbnailImgContent src={img} alt={alt || 'featured image'} />

0 commit comments

Comments
 (0)