For the last week, very slowly, I have been learning how to use the storybook. How to make the dispatch with requests to db work. My stories:
export default {
title: 'Multfilms',
parameters: {
layout: 'fullscreen',
}
} as ComponentMeta<typeof RouterWithRedux>;
const Template: ComponentStory<typeof RouterWithRedux> = (args) => <RouterWithRedux {...args} />;
export const Authorized = Template.bind({});
Authorized.args = {
route: '/multfilms',
initialState: {
user: {
name: 'user',
test_passed: true,
level: 1,
}
}
}