Skip to content

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