Skip to content

Commit

Permalink
removed notes feature
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecasal committed Jun 29, 2023
1 parent d41b7ad commit 002c867
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 559 deletions.
7 changes: 0 additions & 7 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,6 @@ function UserDropdown() {
</Icon>
</Link>
</DropdownMenuItem>
<DropdownMenuItem asChild>
<Link prefetch="intent" to={`/users/${user.username}/notes`}>
<Icon className="text-body-md" name="pencil-2">
Notes
</Icon>
</Link>
</DropdownMenuItem>
<DropdownMenuItem
asChild
// this prevents the menu from closing before the form submission is completed
Expand Down
88 changes: 0 additions & 88 deletions app/routes/resources+/delete-note.tsx

This file was deleted.

143 changes: 0 additions & 143 deletions app/routes/resources+/note-editor.tsx

This file was deleted.

19 changes: 3 additions & 16 deletions app/routes/users+/$username.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,12 @@ export default function UsernameIndex() {
) : null}
<div className="mt-10 flex gap-4">
{isLoggedInUser ? (
<>
<Button asChild>
<Link to="notes" prefetch="intent">
My notes
</Link>
</Button>
<Button asChild>
<Link to="/settings/profile" prefetch="intent">
Edit profile
</Link>
</Button>
</>
) : (
<Button asChild>
<Link to="notes" prefetch="intent">
{userDisplayName}'s notes
<Link to="/settings/profile" prefetch="intent">
Edit profile
</Link>
</Button>
)}
) : null}
</div>
</div>
</div>
Expand Down
57 changes: 0 additions & 57 deletions app/routes/users+/$username_+/notes.$noteId.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions app/routes/users+/$username_+/notes.$noteId_.edit.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions app/routes/users+/$username_+/notes.index.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions app/routes/users+/$username_+/notes.new.tsx

This file was deleted.

Loading

0 comments on commit 002c867

Please sign in to comment.