Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
benchristel committed Nov 26, 2024
1 parent 8cadbcf commit b0ed10b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/perseus/src/widgets/graded-group/graded-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ type State = {
// PropsFor<Component> type takes defaultProps into account, which is important
// because PerseusGradedGroupWidgetOptions has optional fields which receive defaults
// via defaultProps.
0 as any as WidgetProps<PerseusGradedGroupWidgetOptions, PerseusGradedGroupRubric> satisfies PropsFor<typeof GradedGroup>;
0 as any as WidgetProps<
PerseusGradedGroupWidgetOptions,
PerseusGradedGroupRubric
> satisfies PropsFor<typeof GradedGroup>;

// A Graded Group is more or less a Group widget that displays a check
// answer button below the rendered content. When clicked, the widget grades
Expand Down
5 changes: 4 additions & 1 deletion packages/perseus/src/widgets/matrix/matrix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ type ExternalProps = WidgetProps<
// defaultProps into account, which is important because
// PerseusMatrixWidgetOptions has optional fields which receive defaults via
// defaultProps.
0 as any as WidgetProps<PerseusMatrixWidgetOptions, PerseusMatrixRubric> satisfies PropsFor<typeof Matrix>;
0 as any as WidgetProps<
PerseusMatrixWidgetOptions,
PerseusMatrixRubric
> satisfies PropsFor<typeof Matrix>;

type Props = ExternalProps & {
onChange: (
Expand Down

0 comments on commit b0ed10b

Please sign in to comment.