Skip to content

Commit

Permalink
remove unused statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher authored and Christopher committed Aug 10, 2023
1 parent 5cca1fb commit 670fa34
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 47 deletions.
2 changes: 1 addition & 1 deletion src/components/themeButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MoonIcon, SunIcon } from "@heroicons/react/24/solid";
import { useEffect, useState } from "react";
import { useEffect } from "react";

const themeSwitch = () => {
if (document.documentElement.classList.contains("dark")) {
Expand Down
5 changes: 0 additions & 5 deletions src/scenes/about/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import HText from "@/shared/HText";
import { SelectedPage } from "@/shared/types";
import {
HomeModernIcon,
UserGroupIcon,
AcademicCapIcon,
} from "@heroicons/react/24/solid";
import { motion } from "framer-motion";

type Props = {
Expand Down
6 changes: 3 additions & 3 deletions src/scenes/home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import useMediaQuery from "@/hooks/useMediaQuery";
import ActionButton from "@/shared/actionButton";
// import useMediaQuery from "@/hooks/useMediaQuery";
// import ActionButton from "@/shared/actionButton";
import { SelectedPage } from "@/shared/types";
import Profile from "@/assets/profile.png";
import Profile2 from "@/assets/profile2.png";
Expand All @@ -18,7 +18,7 @@ import { useEffect } from "react";
type Props = { setSelectedPage: (value: SelectedPage) => void; theme: string };

const Home = ({ setSelectedPage, theme }: Props) => {
const isAboveMediumScreens = useMediaQuery("(min-width: 1060px)");
//const isAboveMediumScreens = useMediaQuery("(min-width: 1060px)");

const profiles = [Profile, Profile2];

Expand Down
2 changes: 1 addition & 1 deletion src/scenes/navbar/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import useMediaQuery from "@/hooks/useMediaQuery";
//import useMediaQuery from "@/hooks/useMediaQuery";
import { SelectedPage } from "@/shared/types";
import AnchorLink from "react-anchor-link-smooth-scroll";

Expand Down
10 changes: 2 additions & 8 deletions src/scenes/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SelectedPage } from "@/shared/types";
import useMediaQuery from "@/hooks/useMediaQuery";
import ThemeButton from "@/components/themeButton";
import NavProgressBar from "./navProgressBar";
import { clear } from "console";
//import { clear } from "console";

type Props = {
selectedPage: SelectedPage;
Expand All @@ -16,13 +16,7 @@ type Props = {
isTopPage: boolean;
};

const Navbar = ({
selectedPage,
setSelectedPage,
theme,
setTheme,
isTopPage,
}: Props) => {
const Navbar = ({ selectedPage, setSelectedPage, theme, setTheme }: Props) => {
const flexBetween = "flex items-center justify-between";
const isAboveMediumScreens = useMediaQuery("(min-width: 1060px)");
const [isMenuToggled, setIsMenuToggled] = useState(false);
Expand Down
58 changes: 29 additions & 29 deletions src/scenes/portfolio/index.tsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
import HText from "@/shared/HText";
import { SelectedPage, ProjectType } from "@/shared/types";
import { SelectedPage } from "@/shared/types";
import { motion } from "framer-motion";

type Props = {
setSelectedPage: (value: SelectedPage) => void;
theme: string;
};

const projects: Array<ProjectType> = [
{
image: "TBD",
title: "TBD",
description: "C4C... TBD",
link: "TBD",
},
{
image: "",
title: "TL;DR",
description:
"A Chrome extension which summarizes articles for you. Provides an interface for selecting summary length, font size, and light/dark themes.",
link: "",
},
{
image: "",
title: "NLP Image Generator",
description:
"A python script which generates images based on a given text input. Uses Neural Network and Naive Bayes models trained on the Brown Corpus to create word embeddings for mapping emotions to paintins. They are then used to generate a painting from user input by matching objects and sentiment.",
link: "",
},
{
image: "",
title: "Photography",
description: "A collection of my favorite shots :)",
link: "",
},
];
// const projects: Array<ProjectType> = [
// {
// image: "TBD",
// title: "TBD",
// description: "C4C... TBD",
// link: "TBD",
// },
// {
// image: "",
// title: "TL;DR",
// description:
// "A Chrome extension which summarizes articles for you. Provides an interface for selecting summary length, font size, and light/dark themes.",
// link: "",
// },
// {
// image: "",
// title: "NLP Image Generator",
// description:
// "A python script which generates images based on a given text input. Uses Neural Network and Naive Bayes models trained on the Brown Corpus to create word embeddings for mapping emotions to paintins. They are then used to generate a painting from user input by matching objects and sentiment.",
// link: "",
// },
// {
// image: "",
// title: "Photography",
// description: "A collection of my favorite shots :)",
// link: "",
// },
// ];

const Portfolio = ({ setSelectedPage, theme }: Props) => {
return (
Expand Down

0 comments on commit 670fa34

Please sign in to comment.