Skip to content

Commit b8d8dfc

Browse files
authored
Merge pull request #12 from mapmanager/dev
Use imported SVG icon
2 parents 8589407 + d23aab3 commit b8d8dfc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/layout/newDropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as Plugins from "../plugins";
33
import * as FlexLayout from "flexlayout-react";
44
import { Model } from ".";
55
import { WithAsProps } from "rsuite/esm/internals/types";
6+
import AddIcon from "./add.svg";
67

78
/**
89
* Appends a new tab to the layout containing the node
@@ -41,7 +42,7 @@ const renderButton = (
4142
<img
4243
{...props}
4344
ref={ref}
44-
src="/add.svg"
45+
src={AddIcon}
4546
alt="Add"
4647
key="Add button"
4748
style={{ width: "1.1em", height: "1.1em" }}

0 commit comments

Comments
 (0)