Skip to content

Commit

Permalink
imported RhythmCodeIcon into DotMap component
Browse files Browse the repository at this point in the history
  • Loading branch information
ManSangSin committed Oct 18, 2023
1 parent 9d4e58a commit 3a675a4
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions client/src/components/DotMap.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import "./DotMap.css";
import MyMap from "./MyMap";
import RhythmCodeIcon from "./RhythmCodeIcon";

export default function DotMap() {
export default function DotMap({
rhythmCodes,
rhythmsList,
setModalOpen,
setSelectedRhythm,
}) {
return (
<svg
id="dotmap"
Expand Down Expand Up @@ -16615,7 +16620,17 @@ export default function DotMap() {
d="m2145.1,838.29c3,0,5.42,2.42,5.42,5.42s-2.43,5.43-5.42,5.43-5.42-2.43-5.42-5.43c0-3,2.43-5.42,5.42-5.42Z"
/>
<foreignObject width="100%" height="100%" x="-10" y="-10">
<MyMap />
{rhythmCodes.map((rhythmCodeObject) => (
<RhythmCodeIcon
key={rhythmCodeObject.rhythm_code}
rhythmCodeName={rhythmCodeObject.rhythm_code}
rhythmsList={rhythmsList}
toppx={rhythmCodeObject.toppx}
leftpx={rhythmCodeObject.leftpx}
setModalOpen={setModalOpen}
setSelectedRhythm={setSelectedRhythm}
/>
))}
</foreignObject>
</svg>
);
Expand Down

0 comments on commit 3a675a4

Please sign in to comment.