Skip to content

Commit

Permalink
feat: fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Dec 6, 2024
1 parent b0c7a68 commit 21085c8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
20 changes: 9 additions & 11 deletions src/components/App/ActionsToolbar/GraphViewControl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ export const GraphViewControl = () => {
setGraphStyle(val)
}

return (
false && (
<Wrapper direction="column">
{graphStyles.map((i) => (
<Flex key={i} className={clsx('icon', { active: graphStyle === i })} onClick={() => changeGraphType(i)}>
{IconsMapper[i]}
</Flex>
))}
</Wrapper>
)
)
return false ? (

Check warning on line 34 in src/components/App/ActionsToolbar/GraphViewControl/index.tsx

View workflow job for this annotation

GitHub Actions / eslint-run

Unexpected constant condition
<Wrapper direction="column">
{graphStyles.map((i) => (
<Flex key={i} className={clsx('icon', { active: graphStyle === i })} onClick={() => changeGraphType(i)}>
{IconsMapper[i]}
</Flex>
))}
</Wrapper>
) : null
}

const Wrapper = styled(Flex).attrs({
Expand Down
20 changes: 9 additions & 11 deletions src/components/common/GraphViewControl/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ export const GraphViewControl = () => {
setGraphStyle(val)
}

return (
false && (
<Wrapper direction="column">
{graphStyles.map((i) => (
<Flex key={i} className={clsx('icon', { active: graphStyle === i })} onClick={() => changeGraphType(i)}>
{IconsMapper[i]}
</Flex>
))}
</Wrapper>
)
)
return false ? (

Check warning on line 34 in src/components/common/GraphViewControl/index.tsx

View workflow job for this annotation

GitHub Actions / eslint-run

Unexpected constant condition
<Wrapper direction="column">
{graphStyles.map((i) => (
<Flex key={i} className={clsx('icon', { active: graphStyle === i })} onClick={() => changeGraphType(i)}>
{IconsMapper[i]}
</Flex>
))}
</Wrapper>
) : null
}

const Wrapper = styled(Flex).attrs({
Expand Down

0 comments on commit 21085c8

Please sign in to comment.