formatted code to fit the rest of the project

This commit is contained in:
Bash Elliott 2023-01-09 20:20:44 +11:00
parent 8c8c6c0970
commit 79fce6f6a2
2 changed files with 10 additions and 10 deletions

View file

@ -8,7 +8,7 @@
}
.picker {
position: fixed!important;
top: 0;
right: 0;
position: fixed!important;
top: 0;
right: 0;
}

View file

@ -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}
/>
</Chat>
<SketchPicker className="picker" color={colour} onChange={handleColourChange}/>
<SketchPicker className="picker" color={colour} onChange={handleColourChange}/>
</div>
)
}