feat: Update PageHeader component to include action prop for enhanced flexibility
This commit is contained in:
@@ -54,8 +54,7 @@ export default function ProjectViewPage({ params }) {
|
||||
: daysRemaining > 0
|
||||
? `${daysRemaining} days left`
|
||||
: `${Math.abs(daysRemaining)} days overdue`}
|
||||
</Badge>
|
||||
<Link href="/projects">
|
||||
</Badge> <Link href="/projects">
|
||||
<Button variant="outline" size="sm">
|
||||
<svg
|
||||
className="w-4 h-4 mr-2"
|
||||
@@ -72,7 +71,7 @@ export default function ProjectViewPage({ params }) {
|
||||
</svg>
|
||||
Back to Projects
|
||||
</Button>
|
||||
</Link>{" "}
|
||||
</Link>
|
||||
<Link href={`/projects/${id}/edit`}>
|
||||
<Button variant="secondary">Edit Project</Button>
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user