mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
import React from "react";
|
|
|
|
import { storiesOf } from "@storybook/react";
|
|
|
|
import { AlertStore } from "Stores/AlertStore";
|
|
import { Settings } from "Stores/Settings";
|
|
import { MainModalContent, TabNames } from "./MainModalContent";
|
|
|
|
import "Styles/Percy.scss";
|
|
|
|
storiesOf("MainModal", module)
|
|
.addDecorator(storyFn => (
|
|
<div>
|
|
<div className="modal-dialog modal-lg" role="document">
|
|
<div className="modal-content">{storyFn()}</div>
|
|
</div>
|
|
</div>
|
|
))
|
|
.add("Configuration", () => {
|
|
const alertStore = new AlertStore([]);
|
|
const settingsStore = new Settings();
|
|
return (
|
|
<MainModalContent
|
|
alertStore={alertStore}
|
|
settingsStore={settingsStore}
|
|
onHide={() => {}}
|
|
isVisible={true}
|
|
expandAllOptions={true}
|
|
/>
|
|
);
|
|
})
|
|
.add("Help", () => {
|
|
const alertStore = new AlertStore([]);
|
|
const settingsStore = new Settings();
|
|
return (
|
|
<MainModalContent
|
|
alertStore={alertStore}
|
|
settingsStore={settingsStore}
|
|
onHide={() => {}}
|
|
isVisible={true}
|
|
openTab={TabNames.Help}
|
|
expandAllOptions={true}
|
|
/>
|
|
);
|
|
});
|