Next, we need a way to manage the categories. For that, we will create all the missing actions:
- Create Action
- Edit Action
- Delete Action
- Add Icons to the Categories List
Here's what this will look like:
Edit Action and List Buttons
Let's start with the Edit Button. For this, we will need...
Argument of type '
/categories/${string}' is not assignable to parameter of type 'RelativePathString | ExternalPathString | "/sign-in" |/sign-in?${string}|/sign-in#${string}| "/sign-up" |/sign-up?${string}|/sign-up#${string}| "/(app)" | "/(app)/categories/id" | ... 19 more ... | { ...; }'.ts(2345)Got this error from this line:- router.push(
/categories/${category.id});