Skip to content

Commit

Permalink
Made some changes to storybook config
Browse files Browse the repository at this point in the history
  • Loading branch information
shivi committed Jul 13, 2022
1 parent b29b86b commit 87ed602
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion packages/attendance/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
Expand All @@ -10,4 +10,21 @@ module.exports = {
core: {
builder: "webpack5",
},
webpackFinal: async (config, { configType }) => {
config.resolve.alias = {
"react-native$": "react-native-web",
};

return config;
},
typescript: {
check: true,
checkOptions: {},
reactDocgen: "react-docgen-typescript",
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) =>
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
},
},
};
2 changes: 1 addition & 1 deletion packages/attendance/src/services/calls/registryCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const DefaultStudents = async (data): Promise<any> => {
};

export const MultipleAttendance = async (data): Promise<any> => {
return await attendanceRegistryService.Multiple(data);
return await attendanceRegistryService.multipal(data);
};

export const UpdateAttendance = async (data): Promise<any> => {
Expand Down

0 comments on commit 87ed602

Please sign in to comment.