overleaf/services/web/frontend/stories/clone-project-modal-content.stories.js
Alf Eaton 7c97f8ab6e Switch to new JSX runtime (#4225)
* Use new JSX runtime and update Babel Node target
* Update .eslintrc
* Remove React imports

GitOrigin-RevId: 559de0267f8f2934c56a860ea8701bb522aa861a
2021-06-24 02:06:59 +00:00

44 lines
1.1 KiB
JavaScript

import CloneProjectModalContent from '../js/features/clone-project-modal/components/clone-project-modal-content'
export const Basic = args => {
return <CloneProjectModalContent {...args} />
}
export const Invalid = args => {
return (
<CloneProjectModalContent {...args} clonedProjectName="" valid={false} />
)
}
export const Inflight = args => {
return <CloneProjectModalContent {...args} inFlight />
}
export const GenericError = args => {
return <CloneProjectModalContent {...args} error />
}
export const SpecificError = args => {
return (
<CloneProjectModalContent {...args} error="There was a specific error" />
)
}
export default {
title: 'Modals / Clone Project / Content',
component: CloneProjectModalContent,
args: {
animation: false,
projectId: 'original-project',
clonedProjectName: 'Project Title',
show: true,
error: false,
inFlight: false,
valid: true,
},
argTypes: {
cancel: { action: 'cancel' },
handleSubmit: { action: 'submit' },
setClonedProjectName: { action: 'set project name' },
},
}