Skip to content

Commit

Permalink
added redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ZionMiller committed Mar 17, 2023
1 parent 620edf7 commit 9b15241
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "react-scripts build && cp _redirects build/",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
4 changes: 1 addition & 3 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import { Card } from "semantic-ui-react";

import NavBar from "./NavBar";
import LandingPage from "./LandingPage";
import Projects from "./PastProjects";
import Blog from "./Blog";
import Resume from "./Resume";
import "../App.css";
import { useBlogs } from "../hooks/useBlogs";
import { useDevice } from "../hooks/useDevice";
import PastProjects from "./PastProjects";
import Project from "./Project";
Expand All @@ -28,7 +26,7 @@ interface RSSFeedItem {

function App() {
// const { articles } = useBlogs();
const { isTabletOrPhone } = useDevice();
// const { isTabletOrPhone } = useDevice();
const [articles, setArticles] = useState<RSSFeedItem[]>([]);

const regex = /(<([^>]+)>)/gi;
Expand Down
3 changes: 1 addition & 2 deletions src/components/Blog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useMediaQuery } from "react-responsive";
import React, { useEffect, useState } from "react";
import React from "react";
import { Card, Button, Image } from "semantic-ui-react";
import { useDevice } from "../hooks/useDevice";

Expand Down
3 changes: 2 additions & 1 deletion src/components/CurrentProject.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import PropTypes from "prop-types";
import { Menu, Icon } from "semantic-ui-react";
import { useDevice } from "../hooks/useDevice";

Expand All @@ -26,6 +25,7 @@ const CurrentProject = () => {
</p>
<div style={{ maxWidth: '600', maxHeight: '100%' }}>
<iframe
title="BioBreak preview"
src="https://www.youtube.com/embed/OSvQ1FB_MKY"
frameBorder="0"
allowFullScreen
Expand All @@ -51,6 +51,7 @@ const CurrentProject = () => {
<iframe
width="640"
height="360"
title="BioBreak preview"
src="https://www.youtube.com/embed/OSvQ1FB_MKY"
frameBorder="0"
allowFullScreen
Expand Down
2 changes: 0 additions & 2 deletions src/components/Project.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React, { useEffect, useState } from "react";
import PropTypes from "prop-types";
import { Link, Outlet, useLocation, useNavigate } from "react-router-dom";
import { useDevice } from "../hooks/useDevice";
import { Menu } from "semantic-ui-react";

const Project = () => {
const [activeItem, setActiveItem] = useState<string>("");
const { isTabletOrPhone } = useDevice();
const navigate = useNavigate();
const location = useLocation();

Expand Down

0 comments on commit 9b15241

Please sign in to comment.