Skip to content

Commit

Permalink
Make fields optional and update stories
Browse files Browse the repository at this point in the history
  • Loading branch information
dcantatore committed Aug 27, 2024
1 parent 4c0b017 commit d5acb5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/components/RRuleBuilder/RRuleBuilder.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ export default {
showStartDate: {
control: "boolean",
},
inputSize: {
control: "select",
options: ["small", "medium"],
},
inputVariant: {
control: "select",
options: ["standard", "outlined", "filled"],
},
},
} as Meta<typeof RRuleBuilder>;

Expand Down
4 changes: 2 additions & 2 deletions src/components/RRuleBuilder/RRuleBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ interface RRuleBuilderProps {
enableYearlyInterval?: boolean;
showStartDate?: boolean;
defaultFrequency?: Frequency;
inputSize: TextFieldProps["size"];
inputVariant: TextFieldProps["variant"];
inputSize?: TextFieldProps["size"];
inputVariant?: TextFieldProps["variant"];
// used to set initial data in the builder
// rruleOptions?: Options;
// enableSmallScreenDetection?: boolean;
Expand Down

0 comments on commit d5acb5c

Please sign in to comment.