Skip to content

Commit 2056ae2

Browse files
committed
UI: Support star/triangle
1 parent b4264a2 commit 2056ae2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/app/Demo/CreateSpiralApp.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import './Demo.css';
66
export default function CreateSpiralApp({ sendToFigma }: { sendToFigma: (message: any) => void }) {
77

88
const [count, setCount] = useState(120);
9-
const [shape, setShape] = useState<'circle' | 'rectangle' | 'polygon'>('polygon');
9+
const [shape, setShape] = useState<'circle' | 'rectangle' | 'polygon' | 'star' | 'triangle'>('polygon');
1010

1111
const createSpirals = () => {
1212
sendToFigma({ type: 'demo-create-spiral', count, shape });
@@ -45,6 +45,8 @@ export default function CreateSpiralApp({ sendToFigma }: { sendToFigma: (message
4545
<option value="circle">Circle</option>
4646
<option value="rectangle">Rectangle</option>
4747
<option value="polygon">Polygon</option>
48+
<option value="star">Star</option>
49+
<option value="triangle">Triangle</option>
4850
</select>
4951
</td>
5052
</tr>

0 commit comments

Comments
 (0)