Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
is2ac2 committed Jun 10, 2024
1 parent 0debb86 commit e3bc7d8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/nav/Boop.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { animated } from 'react-spring';
import useBoop from 'hooks/useBoop';
import useBoop from "hooks/useBoop";
import React from "react";
import { animated } from "react-spring";

interface BoopProps {
x?: number;
Expand Down
24 changes: 12 additions & 12 deletions frontend/src/components/nav/TopNavbar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Boop from "components/nav/Boop";
import Sidebar from "components/nav/Sidebar";
import { useTheme } from "hooks/theme";
import { useState } from "react";
import { Container, Nav, Navbar, Button } from "react-bootstrap";
import { GearFill, MoonFill, SunFill, } from "react-bootstrap-icons";
import { Container, Nav, Navbar } from "react-bootstrap";
import { GearFill, MoonFill, SunFill } from "react-bootstrap-icons";
import { Link } from "react-router-dom";
import Boop from "components/nav/Boop";

const TopNavbar = () => {
const [showSidebar, setShowSidebar] = useState<boolean>(false);
Expand All @@ -19,16 +19,16 @@ const TopNavbar = () => {
</Navbar.Brand>
<div className="d-flex gap-3">
<Boop timing={100}>
<Nav.Link
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
>
{theme === "dark" ? <MoonFill /> : <SunFill />}
</Nav.Link>
<Nav.Link
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
>
{theme === "dark" ? <MoonFill /> : <SunFill />}
</Nav.Link>
</Boop>
<Boop timing = {100}>
<Nav.Link onClick={() => setShowSidebar(true)}>
<GearFill />
</Nav.Link>
<Boop timing={100}>
<Nav.Link onClick={() => setShowSidebar(true)}>
<GearFill />
</Nav.Link>
</Boop>
</div>
</Container>
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/hooks/useBoop.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { useSpring, SpringConfig } from 'react-spring';

import React from "react";
import { SpringConfig, useSpring } from "react-spring";

interface UseBoopProps {
x?: number;
Expand Down

0 comments on commit e3bc7d8

Please sign in to comment.