Skip to content

Commit

Permalink
πŸ› Fix: Switch from next/Head to head
Browse files Browse the repository at this point in the history
- Fix Google Analytics
- Add missing documentation
- Rename `HeadComponent` to `Head`
  • Loading branch information
danielbakas committed Sep 12, 2024
1 parent 5d9cd04 commit 9de2045
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
7 changes: 3 additions & 4 deletions src/app/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* This file contains the layout for the Page component.
*
* Created: Nov 30, 2023
* Modified: Jul 10, 2024
* Modified: Sep 12, 2024
*
* Author: Semantyk Team
* Maintainer: Daniel Bakas <https://id.danielbakas.com>
Expand All @@ -21,8 +21,7 @@ import React from "react";
import "@semantyk/app/layout.css";
import "bootstrap/dist/css/bootstrap.min.css";
import { getMetadata } from "@semantyk/backend/logic/seo";
import HeadComponent
from "@semantyk/frontend/ui/components/atoms/HeadComponent";
import Head from "@semantyk/frontend/ui/components/atoms/Head";
import Body from "@semantyk/frontend/ui/components/molecules/Body";
import { getLang } from "@semantyk/frontend/logic/services/getLang";
import Content from "@semantyk/frontend/ui/components/molecules/Content";
Expand All @@ -39,7 +38,7 @@ export default function RootLayout({ children }) {
return (
// TODO: Add logic for dynamic language
<html lang={lang}>
<HeadComponent/>
<Head/>
<Body>
<Content>
{children}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
* # `HeadComponent.jsx`
* # `Head.jsx`
* client | Semantyk
*
* Created: Jul 9, 2024
* Modified: Jul 10, 2024
* Modified: Sep 12, 2024
*
* Author: Semantyk Team
* Maintainer: Daniel Bakas <https://id.danielbakas.com>
Expand All @@ -15,15 +15,13 @@

//* Imports
import React from "react";
import Head from "next/head";
import Analytics from "@semantyk/frontend/logic/analytics/Analytics";
//* Local Imports

export default function HeadComponent() {
//* Main
export default function Head() {
// Return
return (
<Head>
<Analytics/>
</Head>
);
return (<>
<Analytics/>
</>);
}

0 comments on commit 9de2045

Please sign in to comment.