Skip to content

Commit

Permalink
no helmet
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc committed Oct 1, 2024
1 parent aa35233 commit 76438de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
3 changes: 0 additions & 3 deletions src/pages/+Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ function Layout(props: any) {
<CookiesProvider>
<QueryClientProvider client={queryClient}>
<div className="App">
<Helmet>
<title>Pulpito</title>
</Helmet>
<header className="App-header">
<AppBar
setDrawerOpen={setDrawerOpen}
Expand Down
5 changes: 2 additions & 3 deletions src/pages/runs/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Config } from 'vike-react/Config'
import { usePageContext } from 'vike-react/usePageContext'
import Typography from "@mui/material/Typography";
import { Helmet } from "react-helmet";
Expand All @@ -9,9 +10,7 @@ export default function Page() {
const params = context?.urlParsed.search || {};
return (
<div>
<Helmet>
<title>Runs - Pulpito</title>
</Helmet>
<Config title="Runs - Pulpito" />
<Typography variant="h5" style={{ margin: "20px" }}>
Runs
</Typography>
Expand Down
6 changes: 2 additions & 4 deletions src/pages/runs/@name/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PropsWithChildren } from 'react'
import { Config } from 'vike-react/Config'
import { usePageContext } from 'vike-react/usePageContext'
import { useData } from 'vike-react/useData'
import Typography from "@mui/material/Typography";
import { format } from "date-fns";
import { Helmet } from "react-helmet";

import type { Run } from "#src/lib/paddles.d";

Expand Down Expand Up @@ -37,9 +37,7 @@ export default function Page() {
: null;
return (
<div className={classes.root}>
<Helmet>
<title>{`${name} - Pulpito`}</title>
</Helmet>
<Config title={`${name} - Pulpito`} />
<Typography variant="h5" style={{ margin: "20px 0px" }}>
{name}
</Typography>
Expand Down
6 changes: 2 additions & 4 deletions src/pages/runs/@name/jobs/@id/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Config } from 'vike-react/Config'
import { useData } from 'vike-react/useData'
import Grid from '@mui/material/Grid2';
import Typography from "@mui/material/Typography";
Expand All @@ -9,7 +10,6 @@ import PlayCircleOutlineIcon from "@mui/icons-material/PlayCircleOutline";
import QuestionMarkIcon from '@mui/icons-material/QuestionMark';
import ScheduleIcon from "@mui/icons-material/Schedule";
import formatDuration from "date-fns/formatDuration";
import { Helmet } from "react-helmet";
import YAML from "json-to-pretty-yaml";

import Link from "#src/components/Link";
Expand Down Expand Up @@ -157,9 +157,7 @@ export default function Job() {
const data: Job = useData();
return (
<Grid container spacing={2}>
<Helmet>
<title>{`Job ${data.job_id} - Pulpito`}</title>
</Helmet>
<Config title={`Job ${data.job_id} - Pulpito`} />
<JobHeader data={data} />
<Grid size={12}>
<details
Expand Down

0 comments on commit 76438de

Please sign in to comment.