diff --git a/app/javascript/dashboard/components/helpCenter/AddCategory.stories.js b/app/javascript/dashboard/components/helpCenter/AddCategory.stories.js new file mode 100644 index 000000000..024d85fe7 --- /dev/null +++ b/app/javascript/dashboard/components/helpCenter/AddCategory.stories.js @@ -0,0 +1,30 @@ +import AddCategoryComponent from './AddCategory.vue'; +import { action } from '@storybook/addon-actions'; + +export default { + title: 'Components/Help Center', + component: AddCategoryComponent, + argTypes: { + show: { + defaultValue: true, + control: { + type: 'boolean', + }, + }, + }, +}; + +const Template = (args, { argTypes }) => ({ + props: Object.keys(argTypes), + components: { AddCategoryComponent }, + template: + '', +}); + +export const AddCategory = Template.bind({}); +AddCategory.args = { + portalName: 'Chatwoot help center', + locale: 'En-US', + onCreate: action('create'), + onClose: action('cancel'), +}; diff --git a/app/javascript/dashboard/components/helpCenter/AddCategory.vue b/app/javascript/dashboard/components/helpCenter/AddCategory.vue new file mode 100644 index 000000000..2a1b9854c --- /dev/null +++ b/app/javascript/dashboard/components/helpCenter/AddCategory.vue @@ -0,0 +1,160 @@ +