Skip to content

poke: fix view layout #11436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions front/pages/poke/[wId]/data_sources/[dsId]/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export const getServerSideProps = withSuperUserAuthRequirements<{
};
});

export default function DataSourceUpsert({
export default function DataSourceDocumentView({
document,
}: InferGetServerSidePropsType<typeof getServerSideProps>) {
return (
<div className="mx-auto max-w-4xl">
<div className="max-w-4xl">
<div className="pt-6">
<Page.Vertical align="stretch">
<div className="pt-4">
Expand Down Expand Up @@ -126,6 +126,6 @@ export default function DataSourceUpsert({
);
}

DataSourceUpsert.getLayout = (page: ReactElement) => {
DataSourceDocumentView.getLayout = (page: ReactElement) => {
return <PokeLayout title="View Document">{page}</PokeLayout>;
};