Skip to content

Commit

Permalink
Reset linter changes to pass tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Clue88 committed Sep 26, 2024
1 parent f292dff commit 03d451a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/components/Home/Mailchimp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Mailchimp extends React.Component<{}, IMailchimpState> {
name="EMAIL"
id="email"
required
onChange={(e) =>
onChange={e =>
this.handleChange(e as React.ChangeEvent<HTMLInputElement>)
}
/>
Expand All @@ -76,7 +76,7 @@ export class Mailchimp extends React.Component<{}, IMailchimpState> {
name="FNAME"
id="firstName"
required={false}
onChange={(e) =>
onChange={e =>
this.handleChange(e as React.ChangeEvent<HTMLInputElement>)
}
/>
Expand All @@ -89,7 +89,7 @@ export class Mailchimp extends React.Component<{}, IMailchimpState> {
name="LNAME"
id="lastName"
required={false}
onChange={(e) =>
onChange={e =>
this.handleChange(e as React.ChangeEvent<HTMLInputElement>)
}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ import {
} from '../../constants/measurements'

const StatWrapper = styled.div<{ colorAlpha: (a: number) => string }>`
background: ${(props) => props.colorAlpha(1)};
background: ${props => props.colorAlpha(1)};
padding: 1rem;
border-radius: ${BORDER_RADIUS_LG};
margin-bottom: 1.5rem;
width: 100%;
box-shadow: 0 1px 8px ${(props) => props.colorAlpha(0.5)};
box-shadow: 0 1px 8px ${props => props.colorAlpha(0.5)};
display: flex;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const StyledNav = styled.nav<{ active: boolean }>`
padding-bottom: 0.5rem;
background: ${WHITE};
min-height: 0;
max-height: ${(props) => {
max-height: ${props => {
// Kinda kills the close transition, but it's a hack to get the height right
return props.active ? '100vh' : MOBILE_HEADER_HEIGHT
}};
Expand Down
11 changes: 5 additions & 6 deletions src/components/Products/ProductOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,23 @@ const Image = styled.img<{ isEven: boolean }>`
width: 100%;
${maxWidth(TABLET)} {
${(props) => (props.isEven ? 'padding-left: 15%;' : 'padding-right: 15%;')}
${props => (props.isEven ? 'padding-left: 15%;' : 'padding-right: 15%;')}
}
${maxWidth(PHONE)} {
${(props) =>
props.isEven ? 'padding-left: 1rem;' : 'padding-right: 1rem;'}
${props => (props.isEven ? 'padding-left: 1rem;' : 'padding-right: 1rem;')}
}
`

const Img = (props) => <Image as={GatsbyImage} {...props} />
const Img = props => <Image as={GatsbyImage} {...props} />

const StyledContainer = styled(Container)<{ isEven: boolean }>`
display: flex;
justify-content: center;
align-items: ${(props) => (props.isEven ? 'flex-end' : 'flex-start')};
align-items: ${props => (props.isEven ? 'flex-end' : 'flex-start')};
flex-direction: column;
${(props) =>
${props =>
props.isEven &&
`
* {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Resources = () => (
<Section style={{ paddingTop: 0 }}>
<Fade>
<Row margin={M1}>
{resources.map((props) => (
{resources.map(props => (
<Resource key={props.name} {...props} />
))}
</Row>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/members/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const GenericMemberTemplate = ({
<P mb2>
Part of{' '}
{Array.isArray(team)
? team.map((t) => t.name).join(' / ')
? team.map(t => t.name).join(' / ')
: team?.name ?? 'Penn Labs'}
</P>
<Links
Expand Down Expand Up @@ -304,7 +304,7 @@ export const GenericMemberTemplate = ({
<H3>Posts</H3>
</Fade>
<Row margin={M1}>
<Posts posts={posts.filter((p) => !p.frontmatter.draft)} />
<Posts posts={posts.filter(p => !p.frontmatter.draft)} />
</Row>
</>
) : null}
Expand Down

0 comments on commit 03d451a

Please sign in to comment.