-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into koonpeng/merge-react-…
…components Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com>
- Loading branch information
Showing
25 changed files
with
582 additions
and
263 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
13 changes: 7 additions & 6 deletions
13
.../components/tasks/create-task.stories.tsx → ...rc/components/tasks/task-form.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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { CreateTaskForm } from './create-task'; | ||
import { TaskForm } from './task-form'; | ||
|
||
export default { | ||
title: 'Tasks/Create Task', | ||
component: CreateTaskForm, | ||
component: TaskForm, | ||
} satisfies Meta; | ||
|
||
type Story = StoryObj<typeof CreateTaskForm>; | ||
type Story = StoryObj<typeof TaskForm>; | ||
|
||
export const CreateTask: Story = { | ||
export const OpenTaskForm: Story = { | ||
args: { | ||
submitTasks: async () => new Promise((res) => setTimeout(res, 500)), | ||
onDispatchTask: async () => new Promise((res) => setTimeout(res, 500)), | ||
onScheduleTask: async () => new Promise((res) => setTimeout(res, 500)), | ||
cleaningZones: ['test_zone_0', 'test_zone_1'], | ||
patrolWaypoints: ['test_waypoint_0', 'test_waypoint_1'], | ||
pickupPoints: { test_waypoint_0: 'test_waypoint_0' }, | ||
dropoffPoints: { test_waypoint_1: 'test_waypoint_1' }, | ||
}, | ||
render: (args) => { | ||
return <CreateTaskForm {...args} open></CreateTaskForm>; | ||
return <TaskForm {...args} open></TaskForm>; | ||
}, | ||
}; |
Oops, something went wrong.