-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from ReseauEntourage/feature/EN-7353-LinkedIn…
…-et-CV-visibles-Onboarding [EN-7353] linked in et cv visibles onboarding
- Loading branch information
Showing
20 changed files
with
366 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/components/utils/Inputs/FileInput/FileInput.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import React from 'react'; | ||
import { FileTypes } from 'src/components/forms/FormSchema'; | ||
import { FileInput, FileInputProps } from './FileInput'; | ||
|
||
const FileInputConfigured = ({ fileType, accept }: FileInputProps) => { | ||
const [file, setFile] = React.useState<File | null>(null); | ||
return ( | ||
<FileInput | ||
accept={accept} | ||
fileType={fileType} | ||
id="file-input-storybook" | ||
name="cv" | ||
value={file} | ||
onChange={(value) => { | ||
setFile(value); | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
const meta = { | ||
title: 'FileInput', | ||
render: FileInputConfigured, | ||
} satisfies Meta<typeof FileInput>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof FileInput>; | ||
|
||
export const Cv: Story = { | ||
args: { | ||
fileType: FileTypes.CV, | ||
accept: '.pdf', | ||
}, | ||
}; |
Oops, something went wrong.