Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed May 16, 2024
1 parent bd39d4c commit 59d28e7
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 33 deletions.
12 changes: 6 additions & 6 deletions src/components/elements/Terminal/Terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ const TerminalButtonRed = ({ loading, ...props }) => (
style={
loading
? {
animationDelay: animationDelay(1),
animationDuration
}
animationDelay: animationDelay(1),
animationDuration
}
: undefined
}
{...props}
Expand All @@ -112,9 +112,9 @@ const TerminalButtonGreen = ({ loading, ...props }) => (
style={
loading
? {
animationDelay: animationDelay(3),
animationDuration
}
animationDelay: animationDelay(3),
animationDuration
}
: undefined
}
{...props}
Expand Down
3 changes: 1 addition & 2 deletions src/components/patterns/Chat/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const Chat = () => {
'https://join.slack.com/t/microlinkhq/shared_invite/zt-3oe805om-HzexWW5yQNcF6cJs3dFM_A',
'_blank',
'noopener noreferrer'
)
}
)}
>
<Caps css={theme({ px: 3, py: 2 })}>Join in the community</Caps>
</Button>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/enterprise.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ const EnterprisePage = () => {
'mailto:[email protected]?subject=Microlink%20Enterprise&body=Hello%2C%20I%20want%20to%20upgrade%20my%20customer%20plan%20to%20Microlink%20Enterprise.%0D%0A%0D%0ACan%20you%20tell%20me%20more%20about%20the%20details%3F%0D%0A%0D%0AThank%20you!%0D%0A',
'_blank',
'noopener noreferrer'
)
}
)}
>
<Caps
css={themeProp({ bg: 'black', px: 3, py: 2, color: primary })}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/formats.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ const FormatsPage = () => {
<Box css={theme({ p: [4, 4, 0, 0] })}>
<Button
onClick={() =>
window.open(issueUrl.bug(), '_blank', 'noopener noreferrer')
}
window.open(issueUrl.bug(), '_blank', 'noopener noreferrer')}
>
<Caps>Request a format</Caps>
</Button>
Expand Down
25 changes: 12 additions & 13 deletions src/pages/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ const PreviewResponsive = React.memo(function PreviewResponsive ({
const colors = isLoading
? Array.from({ length: 6 }, () => '#fff')
: [
...new Set(
[]
.concat(
logo.palette,
logo.background_color,
logo.color,
logo.alternative_color
)
.filter(Boolean)
)
]
...new Set(
[]
.concat(
logo.palette,
logo.background_color,
logo.color,
logo.alternative_color
)
.filter(Boolean)
)
]

const LogoComponent = isLoading
? LogoEmpty
Expand Down Expand Up @@ -257,8 +257,7 @@ const PreviewResponsive = React.memo(function PreviewResponsive ({
toClipboard({
copy: color,
text: Tooltip.TEXT.COPIED.COLOR(color)
})
}
})}
/>
</Tooltip>
)
Expand Down
3 changes: 1 addition & 2 deletions src/pages/recipes.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ const RecipesPage = () => {
<Box css={theme({ pt: [4, null, 0] })}>
<Button
onClick={() =>
window.open(issueUrl.bug(), '_blank', 'noopener noreferrer')
}
window.open(issueUrl.bug(), '_blank', 'noopener noreferrer')}
>
<Caps>Request an Integration</Caps>
</Button>
Expand Down
5 changes: 2 additions & 3 deletions src/pages/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,8 @@ const Screenshot = ({ data, cardWidth, cardHeight }) => {
isLoading
? undefined
: {
filter: 'drop-shadow(rgba(0, 0, 0, 0.2) 0 16px 12px)'
}
}
filter: 'drop-shadow(rgba(0, 0, 0, 0.2) 0 16px 12px)'
}}
/>
</Link>
)
Expand Down
3 changes: 2 additions & 1 deletion src/pages/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ const StatusPage = () => {
</Monospace>
<Monospace
css={themeProp({ color })}
>{`\n${resume}`}</Monospace>
>{`\n${resume}`}
</Monospace>
<Monospace css={themeProp({ color, fontSize: [0, null, 1] })}>
{`\n${info}`}
</Monospace>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/user-agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ const UserAgentsPage = () => {
css={theme({ alignItems: 'center', justifyContent: 'center' })}
defaultValue='User Agent'
onChange={value =>
setType(value === 'User Agent' ? 'user' : 'crawler')
}
setType(value === 'User Agent' ? 'user' : 'crawler')}
>
{['User Agent', 'Crawler Agent']}
</Toggle>
Expand Down

0 comments on commit 59d28e7

Please sign in to comment.