Skip to content

Commit

Permalink
💚 CI - fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JosselinTILLAY committed Dec 18, 2023
1 parent 3709a05 commit 41d9e4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Storybook/.ondevice/storybook.requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const getStories = () => {
"./components/BottomSheet/BottomSheet.stories.tsx": require("../components/BottomSheet/BottomSheet.stories.tsx"),
"./components/Button/Button.stories.tsx": require("../components/Button/Button.stories.tsx"),
"./components/Card/Card.stories.tsx": require("../components/Card/Card.stories.tsx"),
"./components/DatePicker/DateField.stories.tsx": require("../components/DatePicker/DateField.stories.tsx"),
"./components/DateSelector/DateField.stories.tsx": require("../components/DateSelector/DateField.stories.tsx"),
"./components/Dialog/Dialog.stories.tsx": require("../components/Dialog/Dialog.stories.tsx"),
"./components/Divider/Divider.stories.tsx": require("../components/Divider/Divider.stories.tsx"),
"./components/DropDown/DropDown.stories.tsx": require("../components/DropDown/DropDown.stories.tsx"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ import React, { useState } from 'react';
import { ComponentMeta } from '@storybook/react';
import { StyleSheet, View } from 'react-native';
import { DateField } from '../../../src';
import { DateFieldProps } from '../../../src/components/datePicker/DateField';
import { DateFieldProps } from '../../../src/components/dateSelector/DateField';

export default {
title: 'components/DateField',
component: DateField,
argTypes: {
placeholder: { control: { type: 'text' }, defaultValue: '01' },
hasError: { control: { type: 'boolean' }, defaultValue: false },
placeholder: { control: { type: 'text' } },
hasError: { control: { type: 'boolean' } },
},
args: {
placeholder: '01',
hasError: false,
},
decorators: [
(Story) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/IconProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ export type IconName =
| 'rainy'
| 'snow'
| 'thunderstorms'
| 'fail'
| 'fail';

0 comments on commit 41d9e4a

Please sign in to comment.