mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
36 lines
890 B
JavaScript
36 lines
890 B
JavaScript
import React from "react";
|
|
|
|
import { storiesOf } from "@storybook/react";
|
|
|
|
import { MockGrid } from "__mocks__/Stories.js";
|
|
import { AlertStore } from "Stores/AlertStore";
|
|
import { OverviewModalContent } from "./OverviewModalContent";
|
|
|
|
import "Styles/Percy.scss";
|
|
|
|
storiesOf("OverviewModal", module).add("OverviewModal", () => {
|
|
const Modal = ({ children }) => (
|
|
<div>
|
|
<div className="modal-dialog modal-lg" role="document">
|
|
<div className="modal-content">{children}</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
const alertStore = new AlertStore([]);
|
|
MockGrid(alertStore);
|
|
|
|
const emptyAlertStore = new AlertStore([]);
|
|
|
|
return (
|
|
<div>
|
|
<Modal>
|
|
<OverviewModalContent alertStore={alertStore} onHide={() => {}} />
|
|
</Modal>
|
|
<Modal>
|
|
<OverviewModalContent alertStore={emptyAlertStore} onHide={() => {}} />
|
|
</Modal>
|
|
</div>
|
|
);
|
|
});
|