diff --git a/app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.stories.js b/app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.stories.js new file mode 100644 index 000000000..853542357 --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.stories.js @@ -0,0 +1,52 @@ +import { action } from '@storybook/addon-actions'; +import ReminderItem from './ReminderItem'; + +export default { + title: 'Components/Reminder/Item', + component: ReminderItem, + argTypes: { + id: { + control: { + type: 'number', + }, + }, + text: { + defaultValue: + 'A copy and paste musical notes symbols & music symbols collection for easy access.', + control: { + type: 'text', + }, + }, + isCompleted: { + control: { + type: 'boolean', + }, + }, + date: { + defaultValue: '03/06/2020', + control: { + type: 'text', + }, + }, + label: { + defaultValue: 'Call', + control: { + type: 'text', + }, + }, + }, +}; + +const Template = (args, { argTypes }) => ({ + props: Object.keys(argTypes), + components: { ReminderItem }, + template: + '', +}); + +export const Item = Template.bind({}); +Item.args = { + onClick: action('Marked'), + onEdit: action('Edit'), + onDelete: action('Delete'), +}; diff --git a/app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.vue b/app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.vue new file mode 100644 index 000000000..2fe47a66e --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.vue @@ -0,0 +1,127 @@ + + + + +