All files / owid-grapher/grapher/noDataModal NoDataModal.stories.tsx

100% Statements 40/40
100% Branches 1/1
100% Functions 1/1
100% Lines 40/40

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 261x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
import * as React from "react"
import { NoDataModal } from "./NoDataModal"
 
export default {
    title: "NoDataModal",
    component: NoDataModal,
}
 
export const WithAddDataButtons = (): JSX.Element => {
    return (
        <div className="chart" style={{ width: 640, height: 480 }}>
            <svg>
                <NoDataModal
                    message="You have no data, but this is only a test"
                    manager={{
                        canChangeEntity: true,
                        canAddData: true,
                        isSelectingData: false,
                        entityType: "Country",
                    }}
                />
            </svg>
        </div>
    )
}