Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingBrandonL committed May 1, 2024
1 parent b0bdb3f commit ddfd08d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
13 changes: 5 additions & 8 deletions src/webPages/Components/HeaderFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';
import Box from '@mui/material/Box';
import Button from "@mui/material/Button";
import NavDropDown from './NavDropDown';
Expand All @@ -10,7 +10,7 @@ import DensitySmallSharpIcon from '@mui/icons-material/DensitySmallSharp';
// import Typography from '@mui/material/Typography';

export const Header = () => {
const [openDrawer, setOpenDrawer] = React.useState(false);
const [openDrawer, setOpenDrawer] = useState(false);
const toggleDrawer = (newOpenDrawer: boolean) => () => {
setOpenDrawer(newOpenDrawer);
};
Expand All @@ -37,23 +37,20 @@ export const Footer = () => {
window.open("https://www.ucar.edu/accessibility", "_blank");
}

const [aboutOpen, setAboutOpen] = React.useState(false);
const [, setAboutOpen] = useState(false);
const handleAboutOpen = () => setAboutOpen(true);
const handleAboutClose = () => setAboutOpen(false);
const handleAbout = () => {
handleAboutOpen();
};

const [collabOpen, setCollabOpen] = React.useState(false);
const [, setCollabOpen] = useState(false);
const handleCollabOpen = () => setCollabOpen(true);
const handleCollabClose = () => setCollabOpen(false);
const handleCollab = () => {
handleCollabOpen();
};

const [sponsorOpen, setSponsorOpen] = React.useState(false);
const [, setSponsorOpen] = useState(false);
const handleSponsorOpen = () => setSponsorOpen(true);
const handleSponsorClose = () => setSponsorOpen(false);
const handleSponsor = () => {
handleSponsorOpen();
};
Expand Down
5 changes: 2 additions & 3 deletions src/webPages/Family/family.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import React, { useState } from 'react';

import NavDropDown from '../Components/NavDropDown';
import RenderFamilyTree from '../Components/RenderFamilyTree';
import RenderSpeciesReactionTable from '../Components/RenderSpeciesReactionTable';
import { CreateDOIModal, CreateFamilyModal, CreatePublishModal, CreateShareModal, CreateTagMechanismModal } from '../Components/Modals';
import { CreateFamilyModal, CreateTagMechanismModal } from '../Components/Modals';

import { StyledHeader, StyledDetailBox } from './familyStyling';
import { StyledDetailBox } from './familyStyling';

import { Header, Footer } from '../Components/HeaderFooter';

Expand Down
3 changes: 1 addition & 2 deletions src/webPages/LogIn/logIn.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from 'react';
import { useNavigate } from 'react-router-dom';
import { useState, useEffect } from 'react';
import { googleLogout, useGoogleLogin } from '@react-oauth/google';
Expand Down Expand Up @@ -33,7 +32,7 @@ interface Profile {
const navigate = useNavigate();
const handleClick = () => navigate('/LoggedIn');

const [aboutOpen, setAboutOpen] = React.useState(false);
const [aboutOpen, setAboutOpen] = useState(false);
const handleAboutOpen = () => setAboutOpen(true);
const handleAboutClose = () => setAboutOpen(false);

Expand Down
1 change: 0 additions & 1 deletion src/webPages/RoutingRenders/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Settings from '../Settings/settings';
import LoggedIn from '../LogIn/loggedIn';
import FamilyPage from '../Family/family';
import LogIn from '../LogIn/logIn';
import { Header } from '../Components/HeaderFooter';

function App() {
return (
Expand Down

0 comments on commit ddfd08d

Please sign in to comment.