diff --git a/src/wireframes/components/ToolView.tsx b/src/wireframes/components/ToolView.tsx
index 861d3f1..7b105ec 100644
--- a/src/wireframes/components/ToolView.tsx
+++ b/src/wireframes/components/ToolView.tsx
@@ -28,49 +28,61 @@ export const ToolView = (props: ToolViewProps) => {
const MoreTools = (props: {item: DiagramItem}) => {
const renderer = props.item.renderer;
- if (renderer == shapes.id.table) {
- return (
- <>
-
-
-
-
-
-
- >
- )
- } else if (renderer == shapes.id.image || renderer == shapes.id.graphic) {
- return (
- <>
-
-
- >
- )
- } else if (renderer == shapes.id.textbox || renderer == shapes.id.equation) {
- return (
- <>
-
-
- >
- )
- } else if (renderer == shapes.id.line) {
- return (
- <>
-
-
-
-
-
-
- >
- )
- } else {
- return (
- <>
-
-
- >
- )
+ switch (renderer) {
+ case shapes.id.table:
+ return (
+ <>
+
+
+
+
+
+
+ >
+ );
+ case shapes.id.image:
+ case shapes.id.graphic:
+ return (
+ <>
+
+
+ >
+ );
+ case shapes.id.textbox:
+ case shapes.id.equation:
+ return (
+ <>
+
+
+ >
+ );
+ case shapes.id.line:
+ return (
+ <>
+
+
+
+
+
+
+ >
+ );
+ case shapes.id.shape:
+ return (
+ <>
+
+
+
+
+ >
+ );
+ default:
+ return (
+ <>
+
+
+ >
+ );
}
}