Skip to content

Commit 979cf51

Browse files
committed
complete eraser icon using svg
1 parent 91d944f commit 979cf51

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

client/src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const socket = io("http://localhost:8000");
77
import Sidebar from "./components/Sidebar";
88
import Canvas from "./components/Canvas";
99
import Menu from "./components/Menu";
10+
import EraserCursor from "./components/EraserCursor";
1011

1112
function App() {
1213

@@ -135,6 +136,7 @@ function App() {
135136
></Sidebar>
136137
<Canvas canvasRef={canvasRef}></Canvas>
137138
{showMenu && <Menu></Menu>}
139+
<EraserCursor></EraserCursor>
138140
</div>
139141
);
140142
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import eraserSvg from "../assets/eraserSvg.svg"
2+
3+
function EraserCursor(){
4+
return(
5+
<div className="h-7 w-7 left-36 transform rotate-90 absolute">
6+
<img src={eraserSvg}></img>
7+
</div>
8+
)
9+
}
10+
11+
export default EraserCursor;

0 commit comments

Comments
 (0)