Skip to content

Commit

Permalink
missing alert for climb page
Browse files Browse the repository at this point in the history
  • Loading branch information
vnugent committed Nov 1, 2024
1 parent 3215b3e commit 8453d03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/app/(default)/climb/[[...slug]]/components/PageAlert.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Link from 'next/link'
import { Bulldozer } from '@phosphor-icons/react/dist/ssr'

export const PageAlert: React.FC<{ id: string }> = ({ id }) => (
<div className='alert alert-warning text-md flex justify-center'>
<div className='flex gap-1'>
<Bulldozer size={24} className='mr-2' />
We're giving this page a facelift.
<Link href={`/climbs/${id}`} className='underline font-semibold'>Visit the previous version</Link>
to make edits.
</div>
</div>)

0 comments on commit 8453d03

Please sign in to comment.