From 662e4f4d82026d2bd61b80da3521d83e5a493f46 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Fri, 3 Oct 2025 06:11:11 -0600 Subject: [PATCH] fix: re-add upload button --- src/components/overlay.tsx | 15 +++++++++++++-- tests/app.spec.tsx | 7 +++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/components/overlay.tsx b/src/components/overlay.tsx index 404c4a4..0d327c4 100644 --- a/src/components/overlay.tsx +++ b/src/components/overlay.tsx @@ -1,9 +1,12 @@ import { useEffect, useState } from "react"; +import { LuUpload } from "react-icons/lu"; import { Box, Button, + FileUpload, GridItem, HStack, + IconButton, Input, SimpleGrid, type UseFileUploadReturn, @@ -104,7 +107,15 @@ export default function Overlay({ Examples - + + + + + + + + + @@ -133,7 +144,7 @@ function HrefInput({ e.preventDefault(); setHref(value); }} - w={"full"} + flex="1" > { .toBeVisible(); }); + test("has an upload button", async () => { + const app = renderApp(); + await expect + .element(app.getByRole("button", { name: "upload" })) + .toBeVisible(); + }); + test("has a color mode button", async () => { const app = renderApp(); await expect