Add stories for validation errors in MethodRow

This commit is contained in:
Robert
2023-10-19 16:14:41 +01:00
parent 0af77d086a
commit 553435d5b7

View File

@@ -153,3 +153,28 @@ MultipleModelings.args = {
methodCanBeModeled: true,
viewState,
};
export const ValidationError = Template.bind({});
ValidationError.args = {
method,
modeledMethods: [
{ ...modeledMethod, type: "source" },
{ ...modeledMethod, type: "source" },
],
methodCanBeModeled: true,
viewState,
};
export const MultipleValidationErrors = Template.bind({});
MultipleValidationErrors.args = {
method,
modeledMethods: [
{ ...modeledMethod, type: "source" },
{ ...modeledMethod, type: "source" },
{ ...modeledMethod, type: "sink" },
{ ...modeledMethod, type: "sink" },
{ ...modeledMethod, type: "neutral", kind: "source" },
],
methodCanBeModeled: true,
viewState,
};