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

Add a dock clear button #648

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JHawk0224
Copy link

Feel free to reject lol

@JHawk0224 JHawk0224 requested a review from AaDalal April 9, 2024 17:34
@JHawk0224 JHawk0224 closed this Apr 9, 2024
@JHawk0224 JHawk0224 deleted the jhawk0224/dock-clear-button branch April 9, 2024 17:36
@@ -140,6 +152,11 @@ const Dock = ({ user, login, logout, activeDegreeplanId }: DockProps) => {
// }
// }, [isMount, dockedCourses]);

const { remove } = useSWRCrud<DockedCourse>(`/api/degree/docked`, { idKey: 'full_code' });
const handleRemoveCourse = (full_code: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

convention: fullCode

Copy link
Author

Choose a reason for hiding this comment

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

Screenshot 2024-04-09 at 3 59 35 PM 👀

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah we've been using full_code. That might not be a good pattern (mb if so), but tbh I think this OK for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Will defer to @esinx here, but if we want to clean this up, we should probably do so at the entire project level and likely after we solve the user facing issues

@AaDalal AaDalal mentioned this pull request Apr 9, 2024
10 tasks
@JHawk0224 JHawk0224 restored the jhawk0224/dock-clear-button branch April 10, 2024 11:37
@JHawk0224 JHawk0224 reopened this Apr 10, 2024
@AaDalal AaDalal requested a review from esinx April 11, 2024 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants