Skip to content

Commit

Permalink
fix: type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Jan 8, 2024
1 parent 07abc55 commit 6e2bce1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/rating-field/RatingField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const RatingField = ({
{options.map((value) => (
<div key={value} onClick={() => actions.setValue(value)}>
<Rating.Star
// @ts-expect-error https://github.com/form-atoms/field/issues/66
filled={props.value && value ? value <= props.value : false}
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useFieldError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export type InputColors = (keyof FlowbiteStateColors)[];

export type FlowbiteStateColor = keyof FlowbiteStateColors;

export const useFieldError = <Value,>(
field: FieldAtom<Value>,
export const useFieldError = (
field: FieldAtom<any>,
colors: InputColors = ["failure"],
) => {
const { validateStatus, errors, touched } = useFieldState(field);
Expand Down

0 comments on commit 6e2bce1

Please sign in to comment.