From 2fca87e3e7f2ebe9f9c5aec23be9cf392a0f0ff0 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Wed, 2 Jun 2021 22:48:09 +0530 Subject: [PATCH] Feat: Creates reminder list component for CRM (#2258) * Feat: Creates reminder list component for CRM Co-authored-by: Nithin David Thomas --- .../components/ReminderItem.stories.js | 52 +++++++ .../contacts/components/ReminderItem.vue | 127 ++++++++++++++++++ 2 files changed, 179 insertions(+) create mode 100644 app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.stories.js create mode 100644 app/javascript/dashboard/routes/dashboard/contacts/components/ReminderItem.vue 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 @@ + + + + +