storybook and template fixes

This commit is contained in:
41666 2020-12-03 11:32:09 -05:00
parent 7371b5e490
commit 0e2c981560
11 changed files with 69 additions and 30 deletions

View file

@ -1,5 +1,6 @@
const path = require('path');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const { NormalModuleReplacementPlugin } = require('webpack');
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
@ -11,6 +12,11 @@ module.exports = {
}),
];
config.resolve.alias['next/link'] = path.resolve(
__dirname,
'mocks/next_link.tsx'
);
return config;
},
typescript: {

View file

@ -0,0 +1,8 @@
import * as React from 'react';
type Props = {
children: React.ReactNode;
};
const Link = (props: Props) => <>{props.children}</>;
export default Link;