From 35add63ec4dce39710095f17abd86777de9e5b49 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 4 Oct 2025 18:36:10 -0700 Subject: Working history state --- src/App.tsx | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'src/App.tsx') diff --git a/src/App.tsx b/src/App.tsx index 3623384..c50d1fc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,13 +1,29 @@ -import { useState } from "react"; -import { ChooseArt } from "./pages/ChooseArt"; -import { Paint } from "./pages/Paint"; +import { useEffect, useState } from 'react'; + +import { ChooseArt } from '@/pages/ChooseArt'; +import { Paint } from '@/pages/Paint'; + +import { gridFromAscii } from '@/utils/grid'; + +const butterfly = `| | +| ⠀⠀⠀⠀⊹ | +| ⢶⢻⣑⣒⢤⡀⠀⢄⠀⠀⡠⠀⢀⡤⣆⣊⡿⡷ | +| ⠀⠹⠹⣚⣣⠻⣦⡀⠀⠀⢀⣴⠟⣸⢓⢎⠏⠀ | +| ⠀⠀⢡⣱⣖⣢⡾⢿⣾⣷⡿⢷⣖⣒⣎⡎⠀⠀ | +| ⠀⠀⠀⣠⠓⢬⠅⡺⢻⡟⢗⠨⡥⠚⣄⠀⠀⠀ | +| ⠀⠀⠀⣿⡆⠘⠆⢇⢸⡇⠸⠰⠃⢰⣿⠀⠀⠀ | +| ⠀⠀⠀⠐⡻⣮⣬⠞⠈⠁⠳⣤⣴⢿⠂⠀⠀⠀ | +| ⠀⠀⠀⡜⠀⠁⠉⠀⠀⠀⠀⠈⠈⠀⢣⠀⠀⠀ | +| ⊹ | +| |`; export const App: React.FC = () => { - const [chosenArt, setChosenArt] = useState(undefined); + // const [chosenArt, setChosenArt] = useState(undefined); + const [chosenArt, setChosenArt] = useState(butterfly); - if (chosenArt === undefined) { - return + if (chosenArt !== undefined) { + return ; } - return -} + return ; +}; -- cgit v1.2.3-70-g09d2