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

completed all the tasks #9

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

shubhangi013
Copy link

CSOC Task 3 Submission

I have completed the following tasks

  • [ x] Login
  • [x ] auth_required.js and no_auth_required.js
  • [ x] Add Task
  • [ x] Get Tasks
  • [ x] Edit Task
  • [ x] Delete Task

*/
export default function auth_required() {
if (!localStorage.getItem("token")) {
window.location.href = "/login/";
Copy link
Member

Choose a reason for hiding this comment

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

Use Next Router instead of Vanilla JS

const todoText = value.trim();

if (!todoText) {
alert("Enter something to add it")
Copy link
Member

Choose a reason for hiding this comment

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

You can make use of Toasts here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants