overleaf/services/web/frontend/stories/clone-project-modal-content.stories.js
Alf Eaton 1be43911b4 Merge pull request #3942 from overleaf/prettier-trailing-comma
Set Prettier's "trailingComma" setting to "es5"

GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
2021-04-28 02:10:01 +00:00

46 lines
1.1 KiB
JavaScript

import React from 'react'
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' },
},
}