Files
leadchat/stories/Module/AddNote.stories.js
Sivin Varghese 6a7b98b345 Feat: Creates add note component for CRM (#2187)
* Feat: Creates add note component for CRM
2021-05-01 19:26:17 +05:30

20 lines
497 B
JavaScript

import { action } from '@storybook/addon-actions';
import AddNote from '../../app/javascript/dashboard/routes/dashboard/contacts/components/AddNote';
export default {
title: 'Components/Notes/Add',
component: AddNote,
argTypes: {},
};
const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { AddNote },
template: '<add-note v-bind="$props" @add="onAdd"></add-note>',
});
export const Add = Template.bind({});
Add.args = {
onAdd: action('Added'),
};