Skip to content

Commit

Permalink
Add typing for RadioGroupPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Apr 30, 2024
1 parent e43fc50 commit f1ea391
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
PatternEditForm,
usePatternEditFormContext,
} from './common/PatternEditForm';
import { type RadioGroupPattern } from '@atj/forms/src/patterns/radio-group';

const RadioGroupPatternEdit: PatternEditComponent<RadioGroupProps> = props => {
const isSelected = useFormManagerStore(
Expand All @@ -33,7 +34,9 @@ const RadioGroupPatternEdit: PatternEditComponent<RadioGroupProps> = props => {
};

const EditComponent = ({ patternId }: { patternId: PatternId }) => {
const pattern = useFormManagerStore(state => state.form.patterns[patternId]);
const pattern = useFormManagerStore(
state => state.form.patterns[patternId]
) as RadioGroupPattern;
const methods = usePatternEditFormContext();
return (
<div className="grid-row grid-gap">
Expand Down

0 comments on commit f1ea391

Please sign in to comment.