Skip to content

Commit

Permalink
fix(HexGrade): allow passing additional props
Browse files Browse the repository at this point in the history
Closes UXD-1668
  • Loading branch information
ajkl2533 committed Nov 26, 2024
1 parent 516c755 commit 2d32f72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/HexGrade/HexGrade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defaultTo, path, pipe } from 'ramda';
import { isNotUndefined } from 'ramda-adjunct';
import styled, { useTheme } from 'styled-components';
import cls from 'classnames';
import { ComponentPropsWithoutRef } from 'react';

import { createMarginSpacing, getColor } from '../../utils';
import { HexGradeGrades, HexGradeVariants } from './HexGrade.enums';
Expand Down Expand Up @@ -59,7 +60,7 @@ const HexGrade = ({
margin,
className,
...props
}: HexGradeProps) => {
}: HexGradeProps & ComponentPropsWithoutRef<'svg'>) => {
const theme = useTheme();
const isCSVariant = variant === HexGradeVariants.cs;
const gradeColorType = pipe(
Expand Down

0 comments on commit 2d32f72

Please sign in to comment.