Skip to content

Commit 9cf88ab

Browse files
committed
fix properties use din story
1 parent b0df565 commit 9cf88ab

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/components/ColorField/ColorField.stories.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ Default.args = {
2525
export const NoPalettePresets = Template.bind({});
2626
NoPalettePresets.args = {
2727
...Default.args,
28-
colorWeightFilter: [],
29-
paletteGroupFilter: [],
28+
includeColorWeight: [],
29+
includePaletteGroup: [],
3030
allowCustomColor: true,
3131
};
3232

3333
interface TemplateColorHashProps
34-
extends Pick<ColorFieldProps, "onChange" | "allowCustomColor" | "colorWeightFilter" | "paletteGroupFilter"> {
34+
extends Pick<ColorFieldProps, "onChange" | "allowCustomColor" | "includeColorWeight" | "includePaletteGroup"> {
3535
stringForColorHashValue: string;
3636
}
3737

3838
const TemplateColorHash: StoryFn<TemplateColorHashProps> = (args: TemplateColorHashProps) => (
3939
<ColorField
4040
allowCustomColor={args.allowCustomColor}
41-
colorWeightFilter={args.colorWeightFilter}
42-
paletteGroupFilter={args.paletteGroupFilter}
41+
includeColorWeight={args.includeColorWeight}
42+
includePaletteGroup={args.includePaletteGroup}
4343
value={ColorField.calculateColorHashValue(args.stringForColorHashValue, {
4444
allowCustomColor: args.allowCustomColor,
45-
colorWeightFilter: args.colorWeightFilter,
46-
paletteGroupFilter: args.paletteGroupFilter,
45+
includeColorWeight: args.includeColorWeight,
46+
includePaletteGroup: args.includePaletteGroup,
4747
})}
4848
/>
4949
);
@@ -63,7 +63,7 @@ export const ColorHashValue = TemplateColorHash.bind({});
6363
ColorHashValue.args = {
6464
...Default.args,
6565
allowCustomColor: true,
66-
colorWeightFilter: [300, 500, 700],
67-
paletteGroupFilter: ["layout", "extra"],
66+
includeColorWeight: [300, 500, 700],
67+
includePaletteGroup: ["layout", "extra"],
6868
stringForColorHashValue: "My text that will used to create a color hash as initial value.",
6969
};

0 commit comments

Comments
 (0)