Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Marcos Moreira
Added: Oct 9, 2020 1:15 PM
Views: 11
Tags: no tags
  1. import React, { ReactElement } from 'react';
  2. import { Name } from '../../components';
  3. import { TName } from './types';
  4. import data from './mock.json';
  5.  
  6. const mock: TName = data;
  7.  
  8. export const Default = (args): ReactElement => <Name {...args} />;
  9. Default.args = mock;
  10.  
  11. export default {
  12.   component: Name,
  13.   title: 'Sections/Name',
  14. };