Use RegisterModal on file card

Open Beginner friendly
#157 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Start with src/components/sections/SaveButton.tsx and compare its signed-out behavior with useRegisterModal in src/components/club/JoinButton.tsx. Update the SaveButton flow so an unauthenticated user sees the login popup instead of being redirected; done means saving while signed out opens RegisterModal consistently with the homepage.

Written by the indexing model from the issue text.

Description

Recommended for Recruits

Overview

When you click to sign in on the homepage it uses the RegisterModal instead of redirecting to a new page. This doesn't happen when you're signed out and try to save a note.

Proposal

Update the SaveButton (src\components\sections\SaveButton.tsx) to open a login popup when the user is not signed in instead of redirecting. Reference how useRegisterModal is used in https://github.com/UTDNebula/utd-clubs/blob/develop/src/components/club/JoinButton.tsx.

Dominant language
TypeScript
Stars
7
Forks
20
Avg merge
2d 22h
Merged PRs (30d)
8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UTDNebula/utd-notebook

All issues in UTDNebula/utd-notebook

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.