Skip to content

Commit 71ad09e

Browse files
committed
fix: avoid prop forwarding to dom using sc prefix
1 parent 82c8970 commit 71ad09e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Typography } from '@equinor/eds-core-react'
22
import styled from 'styled-components'
33

4-
export const StyledTodoItemTitle = styled(Typography)<{ isStruckThrough?: boolean }>`
5-
text-decoration: ${(props) => (props.isStruckThrough ? 'line-through' : 'none')};
4+
export const StyledTodoItemTitle = styled(Typography)<{ $isStruckThrough?: boolean }>`
5+
text-decoration: ${(props) => (props.$isStruckThrough ? 'line-through' : 'none')};
66
`

web/src/features/todos/todo-list/TodoItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const TodoItem = ({ todo }: { todo: AddTodoResponse }) => {
2626
<Card>
2727
<Card.Header>
2828
<Card.HeaderTitle>
29-
<StyledTodoItemTitle variant="h5" isStruckThrough={todo.is_completed}>
29+
<StyledTodoItemTitle variant="h5" $isStruckThrough={todo.is_completed}>
3030
{todo.title}
3131
</StyledTodoItemTitle>
3232
<Typography variant="body_short">{statusOf(todo.is_completed)}</Typography>

0 commit comments

Comments
 (0)