Skip to content

Commit

Permalink
include storybook, first ts component and bottom refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandremagno committed Mar 23, 2023
1 parent 28f9fc3 commit f681a59
Show file tree
Hide file tree
Showing 38 changed files with 46,405 additions and 11,820 deletions.
2 changes: 1 addition & 1 deletion config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ passport.use(
}
try {
const user = await userExist(userAttributes)
if (!user) done(null, false)
if (!user) return done(null, false)
if (user.verifyPassword(password, user.password)) {
const token = jwt.sign(
{ email: user.email },
Expand Down
15 changes: 15 additions & 0 deletions frontend/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-webpack5"
}
}
9 changes: 9 additions & 0 deletions frontend/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
Loading

0 comments on commit f681a59

Please sign in to comment.