pg-upgrade-logs.tsx19 lines · main
| 1 | import { useParams } from 'common' |
| 2 | |
| 3 | import { LogsPreviewer } from '@/components/interfaces/Settings/Logs/LogsPreviewer' |
| 4 | import DefaultLayout from '@/components/layouts/DefaultLayout' |
| 5 | import LogsLayout from '@/components/layouts/LogsLayout/LogsLayout' |
| 6 | import type { NextPageWithLayout } from '@/types' |
| 7 | |
| 8 | export const LogPage: NextPageWithLayout = () => { |
| 9 | const { ref } = useParams() |
| 10 | return <LogsPreviewer condensedLayout queryType="pg_upgrade" projectRef={ref as string} /> |
| 11 | } |
| 12 | |
| 13 | LogPage.getLayout = (page) => ( |
| 14 | <DefaultLayout> |
| 15 | <LogsLayout title="Postgres Version Upgrade">{page}</LogsLayout> |
| 16 | </DefaultLayout> |
| 17 | ) |
| 18 | |
| 19 | export default LogPage |