Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
vanfossen committed Jul 31, 2022
1 parent 28c307e commit 738aa9c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/Hendi.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from "react";
import "../style/Hendi.css";
import { useState } from "react";
import { ReactComponent as Main } from "./svgs/hendi-main.svg";
import { ReactComponent as Inside } from "./svgs/hendi-inside.svg";
import { ReactComponent as Exterior } from "./svgs/hendi-exterior.svg";
import { ReactComponent as Interior } from "./svgs/hendi-interior.svg";

import { Dialog } from "@mui/material";
import { imgSource, toolTips } from "../dictionaires/SVGLibrary";

function Hendi({ seeOutside }) {
export default function Hendi({ seeOutside }) {
const [toggled, setToggled] = useState(false);
const [element, setElement] = useState();

Expand All @@ -24,9 +24,9 @@ function Hendi({ seeOutside }) {
return (
<div id="instrument-window">
{seeOutside ? (
<Main id="instrument" onClick={handleClick} />
<Exterior id="instrument" onClick={handleClick} />
) : (
<Inside id="instrument" onClick={handleClick} />
<Interior id="instrument" onClick={handleClick} />
)}

{element && (
Expand All @@ -39,5 +39,3 @@ function Hendi({ seeOutside }) {
</div>
);
}

export default Hendi;
File renamed without changes
File renamed without changes

0 comments on commit 738aa9c

Please sign in to comment.