Skip to content

Commit

Permalink
bug: javascript styles (🤢) have to have camelcase properties
Browse files Browse the repository at this point in the history
fix: change margin-x... to marginX....
  • Loading branch information
arnard76 committed Jul 30, 2023
1 parent f8b77c7 commit 6b309a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/SpeechboxArrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const SpeechTextboxArrow = React.memo(
}, []);

const diffStyles = {
top: { margin: "margin-bottom", rotation: 0, align: "flex-end" },
bottom: { margin: "margin-top", rotation: 180, align: "flex-start" },
left: { margin: "margin-right", rotation: 270, align: "flex-start" },
right: { margin: "margin-left", rotation: 90, align: "flex-end" },
top: { margin: "marginBottom", rotation: 0, align: "flex-end" },
bottom: { margin: "marginTop", rotation: 180, align: "flex-start" },
left: { margin: "marginRight", rotation: 270, align: "flex-start" },
right: { margin: "marginLeft", rotation: 90, align: "flex-end" },
}[arrowLocation];

return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/TimerComponent/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Notification({ setTime, sceneTime }) {
variant="contained"
color="black"
onClick={handleClose}
style={{ "margin-left": "10%" }}
style={{ marginLeft: "10%" }}
>
Continue
</Button>
Expand Down

0 comments on commit 6b309a2

Please sign in to comment.