feat: Creates note component for CRM (#2181)

* Feat: Creates note component for CRM


Co-authored-by: Nithin David <webofnithin@gmail.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sivin Varghese
2021-04-30 12:02:20 +05:30
committed by GitHub
parent b89cc9cf57
commit b6f57d7fc1
2 changed files with 173 additions and 0 deletions

View File

@@ -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: '<note v-bind="$props" @edit="onEdit" @delete="onDelete" ></note>',
});
export const DefaultNote = Template.bind({});
DefaultNote.args = {
onEdit: action('Edit'),
onDelete: action('Delete'),
};