diff --git a/app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote.vue b/app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote.vue new file mode 100644 index 000000000..5a023e028 --- /dev/null +++ b/app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/stories/Module/Note.stories.js b/stories/Module/Note.stories.js new file mode 100644 index 000000000..89a5d4848 --- /dev/null +++ b/stories/Module/Note.stories.js @@ -0,0 +1,41 @@ +import { action } from '@storybook/addon-actions'; +import Note from '../../app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote'; + +export default { + title: 'Components/Note', + component: Note, + argTypes: { + note: { + control: { + type: 'text', + }, + }, + userName: { + control: { + type: 'text', + }, + }, + timeStamp: { + control: { + type: 'number', + }, + }, + thumbnail: { + control: { + type: 'text', + }, + }, + }, +}; + +const Template = (args, { argTypes }) => ({ + props: Object.keys(argTypes), + components: { Note }, + template: '', +}); + +export const DefaultNote = Template.bind({}); +DefaultNote.args = { + onEdit: action('Edit'), + onDelete: action('Delete'), +};