From 79fce6f6a2361477c924badfd7d84ea05b1c2902 Mon Sep 17 00:00:00 2001 From: Bash Elliott Date: Mon, 9 Jan 2023 20:20:44 +1100 Subject: [PATCH] formatted code to fit the rest of the project --- src/App.css | 6 +++--- src/App.jsx | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/App.css b/src/App.css index 012fb0d..841f0a3 100644 --- a/src/App.css +++ b/src/App.css @@ -8,7 +8,7 @@ } .picker { - position: fixed!important; - top: 0; - right: 0; + position: fixed!important; + top: 0; + right: 0; } \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 5925c6b..3ca0f4e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -27,10 +27,10 @@ function App() { [newMessage, messages] ) - const handleColourChange = (color) => { - setColour(color.hex); - console.log(color); - }; + const handleColourChange = (color) => { + setColour(color.hex); + console.log(color); + }; const lastMessage = messages[messages.length - 1] const dy = lastMessage ? lastMessage.height : 0 @@ -49,11 +49,11 @@ function App() { value={newMessage} onChange={setNewMessage} onSubmit={handleSubmit} - colourClass={colour} + colourClass={colour} /> - - + + ) }