Skip to content

Commit

Permalink
refactor: migrate openbeta.io/edit to app dir (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
btmccord authored Jan 13, 2024
1 parent 2bb8e23 commit a19774f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 48 deletions.
19 changes: 19 additions & 0 deletions src/app/edit/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { getChangeHistoryServerSide } from '../../js/graphql/contribAPI'
import RecentChangeHistory from '@/components/edit/RecentChangeHistory'
import { ReactElement } from 'react'
import { Metadata } from 'next'

export const metadata: Metadata = {
title: 'Contribute to OpenBeta',
description: 'Share your climbing adventure photos and contribute to the climbing route catalog.'
}

export default async function Page (): Promise<ReactElement> {
const history = await getChangeHistoryServerSide()
return (
<section className='max-w-lg mx-auto w-full'>
<h2 className='px-4 sm:px-0'>Recent history</h2>
<RecentChangeHistory history={history} />
</section>
)
}
48 changes: 0 additions & 48 deletions src/pages/edit/index.tsx

This file was deleted.

1 comment on commit a19774f

@vercel
Copy link

@vercel vercel bot commented on a19774f Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.