diff --git a/src/@types/Form.d.ts b/src/@types/Form.d.ts index 63e11a9d5..4a88b4128 100644 --- a/src/@types/Form.d.ts +++ b/src/@types/Form.d.ts @@ -12,7 +12,7 @@ export interface FormFieldProps { export interface FormContent { title: string - description: string + description?: string success: string data: FormFieldProps[] } diff --git a/src/components/atoms/Alert.stories.tsx b/src/components/atoms/Alert.stories.tsx index a97b92228..98705b7c6 100644 --- a/src/components/atoms/Alert.stories.tsx +++ b/src/components/atoms/Alert.stories.tsx @@ -1,6 +1,6 @@ import React from 'react' import { Center } from '../../../.storybook/helpers' -import { Alert } from './Alert' +import Alert from './Alert' export default { title: 'Atoms/Alert', diff --git a/src/components/atoms/Loader.stories.tsx b/src/components/atoms/Loader.stories.tsx index 0022b64fc..eef84e4d3 100644 --- a/src/components/atoms/Loader.stories.tsx +++ b/src/components/atoms/Loader.stories.tsx @@ -12,7 +12,3 @@ export const Normal = () => export const WithMessage = () => ( ) - -export const WithMessageHorizontal = () => ( - -) diff --git a/src/components/atoms/Table/ActionsCell.tsx b/src/components/atoms/Table/ActionsCell.tsx index 1f8d6ba4b..c91318358 100644 --- a/src/components/atoms/Table/ActionsCell.tsx +++ b/src/components/atoms/Table/ActionsCell.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import React, { ReactElement } from 'react' import Eye from '../../../images/eye.svg' import Button from '../Button' import Tooltip from '../Tooltip' @@ -10,7 +10,7 @@ export declare type ActionsCellProps = { export default function ActionsCell({ handleOnClickViewJobDetails -}: ActionsCellProps) { +}: ActionsCellProps): ReactElement { return ( <> {handleOnClickViewJobDetails && ( diff --git a/src/components/molecules/AssetTeaser.stories.tsx b/src/components/molecules/AssetTeaser.stories.tsx index fc562b70d..956f60059 100644 --- a/src/components/molecules/AssetTeaser.stories.tsx +++ b/src/components/molecules/AssetTeaser.stories.tsx @@ -7,4 +7,9 @@ export default { title: 'Molecules/Asset Teaser' } -export const Default = () => +export const Default = () => ( + +) diff --git a/src/components/molecules/FilesInput/Input.tsx b/src/components/molecules/FilesInput/Input.tsx index 8e2ee0282..897694fde 100644 --- a/src/components/molecules/FilesInput/Input.tsx +++ b/src/components/molecules/FilesInput/Input.tsx @@ -1,9 +1,9 @@ import React, { ReactElement } from 'react' import isUrl from 'is-url-superb' import Button from '../../atoms/Button' -import Input from '../../atoms/Input' import { useField } from 'formik' import Loader from '../../atoms/Loader' +import InputElement from '../../atoms/Input/InputElement' export default function FileInput({ handleButtonClick, @@ -17,7 +17,7 @@ export default function FileInput({ return ( <> - +