Skip to content

Commit

Permalink
Move head title to _app
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgodfrey committed Nov 17, 2023
1 parent 02df2ab commit 56779be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions my-app/src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ import { ToastContainer } from "react-toastify";
import DialogflowChatWidget from "@/components/chatbot/DialogflowChatWidget";
import "@/styles/globals.css";
import "react-toastify/dist/ReactToastify.css";
import Head from "next/head";

const App = ({ Component, pageProps: { session, ...pageProps } }) => {
return (
<>
<Head>
<title>Makai</title>
</Head>
<SessionProvider session={session}>
<div
className="flex flex-col lg:flex-row min-h-screen text-primary bg-gradient-to-br from-slate-800 via-cyan-900 to-sky-950"
Expand Down
4 changes: 1 addition & 3 deletions my-app/src/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { Html, Head, Main, NextScript } from 'next/document'
const Document = () => {
return (
<Html lang="en">
<Head>
<title>Makai</title>
</Head>
<Head />
<body className="min-h-screen">
<Main />
<NextScript />
Expand Down

0 comments on commit 56779be

Please sign in to comment.