Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor with authorization, change current account type #1046

Merged
merged 15 commits into from
Sep 20, 2024

Conversation

pyphilia
Copy link
Contributor

@pyphilia pyphilia commented Sep 17, 2024

In this PR:

  • withAuthorization -> SignedInWrapper (Component)
  • ItemLoginWrapper (Component)
  • PreventGuestWrapper (Component) - new
  • update currentMember type

We can discuss the naming.

@pyphilia pyphilia requested review from spaenleh, ReidyT and alvrba and removed request for spaenleh, ReidyT and alvrba September 17, 2024 14:54
@spaenleh spaenleh assigned spaenleh and pyphilia and unassigned spaenleh Sep 19, 2024
Copy link
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ! I have left a few comments.

src/itemLogin/ItemLoginAuthorization.tsx Outdated Show resolved Hide resolved
src/itemLogin/ItemLoginAuthorization.stories.tsx Outdated Show resolved Hide resolved
ReidyT
ReidyT previously requested changes Sep 19, 2024
Copy link
Contributor

@ReidyT ReidyT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🧑‍🚀 I wonder if we should make the optional parameters of PreventGuestWrapper mandatory. What do you think (I elaborate that directly in the code review)?

src/Authorization/PreventGuestWrapper.tsx Outdated Show resolved Hide resolved
src/Authorization/PreventGuestWrapper.tsx Outdated Show resolved Hide resolved
src/Authorization/SignedInWrapper.tsx Outdated Show resolved Hide resolved
src/Authorization/PreventGuestWrapper.stories.tsx Outdated Show resolved Hide resolved
src/itemLogin/ItemLoginAuthorization.tsx Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Sep 20, 2024

@pyphilia pyphilia added this pull request to the merge queue Sep 20, 2024
Merged via the queue into main with commit bfe516f Sep 20, 2024
3 checks passed
@pyphilia pyphilia deleted the refactor-with-authorization branch September 20, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants