File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2176,7 +2176,7 @@ export default function Page() {
21762176
21772177Now, in the ` PageAdminProject.tsx ` we can add an edit button which links to the update page.
21782178
2179- ``` tsx {1-4, 14-24 } filename="src/features/projects/PageAdminProject.tsx" showLineNumbers
2179+ ``` tsx {1-4, 14-25 } filename="src/features/projects/PageAdminProject.tsx" showLineNumbers
21802180import Link from " next/link" ;
21812181import { LuPenLine } from " react-icons/lu" ;
21822182import { ResponsiveIconButton } from " @/components/ResponsiveIconButton" ;
@@ -2196,6 +2196,7 @@ export default function PageAdminProject() {
21962196 href = { ROUTES_PROJECTS .admin .update ({
21972197 params?.id?.toString() ?? ' unknown' ,
21982198 })}
2199+ isDisabled = { ! params ?.id }
21992200 icon = { <LuPenLine />}
22002201 >
22012202 Edit
You can’t perform that action at this time.
0 commit comments