Skip to content

Commit

Permalink
fix: remove dead notion code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Jul 24, 2024
1 parent b4616e3 commit c4cb58a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/pages/music.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ import React, { ReactElement } from "react";
import Format from "../components/Format/Format";
import SEO from "../components/SEO/SEO";
import { graphql, useStaticQuery } from "gatsby";
import { Client } from "@notionhq/client";

import "../styles/music.scss";

const NOTION_COLLECTION_UUID = "d4aa82bc984a4236a5b2c6e11ce3da8b";

const notion = new Client();

interface Cover {
name: string;
url: string;
Expand Down Expand Up @@ -46,19 +43,6 @@ const Music = ({ location, serverData }: MusicProps): ReactElement => {

const { title } = data.site.siteMetadata;

const getPages = async () => {
try {
const response = await notion.databases.query({
database_id: NOTION_COLLECTION_UUID,
});
console.log(response);
} catch (error) {
console.error(error);
}
};

getPages();

return (
<Format location={location} title={title}>
<SEO title="About" />
Expand Down

0 comments on commit c4cb58a

Please sign in to comment.