Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ const DsButton: React.FC<DsButtonProps> = ({
styles[size],
className,

// @ts-expect-error: we don't have all variations of classnames defined
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
styles[`${type}-${variant}`],
// Casting because we don't have all variations of classnames defined
styles[`${type}-${variant}` as keyof typeof styles],
);

return (
Expand Down
5 changes: 2 additions & 3 deletions packages/design-system/src/components/ds-drawer/ds-drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ const DsDrawer = ({
styles[`position-${position}`],
className,

// @ts-expect-error: these classnames are generated dynamically in scss
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
styles[`cols-${String(columns)}`],
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
styles[`cols-${columns}`],
)}
>
<div className={styles.content}>{children}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ const DsFormControl = ({
styles.container,
className,

// @ts-expect-error: `info` doesn't have its own classname
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
status && message && styles[status],
// Casting because `info` doesn't have its own classname
status && message && styles[status as keyof typeof styles],
)}
style={style}
>
Expand Down
Loading