From 87ed60252c339871e38f3718661245da3f7ab172 Mon Sep 17 00:00:00 2001 From: shivi Date: Wed, 13 Jul 2022 17:17:10 +0530 Subject: [PATCH] Made some changes to storybook config --- packages/attendance/.storybook/main.js | 19 ++++++++++++++++++- .../src/services/calls/registryCalls.ts | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/packages/attendance/.storybook/main.js b/packages/attendance/.storybook/main.js index 4df7266c..8916d51d 100644 --- a/packages/attendance/.storybook/main.js +++ b/packages/attendance/.storybook/main.js @@ -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", @@ -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, + }, + }, }; diff --git a/packages/attendance/src/services/calls/registryCalls.ts b/packages/attendance/src/services/calls/registryCalls.ts index fdd6b1bf..f0356441 100644 --- a/packages/attendance/src/services/calls/registryCalls.ts +++ b/packages/attendance/src/services/calls/registryCalls.ts @@ -14,7 +14,7 @@ export const DefaultStudents = async (data): Promise => { }; export const MultipleAttendance = async (data): Promise => { - return await attendanceRegistryService.Multiple(data); + return await attendanceRegistryService.multipal(data); }; export const UpdateAttendance = async (data): Promise => {