Skip to content

Commit

Permalink
fixed getURL and centered record button
Browse files Browse the repository at this point in the history
  • Loading branch information
BANANAPEEL202 committed Apr 30, 2024
1 parent ea6b620 commit 3431ab6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Components/StartStopButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function StartStopButton({fields, data, recording, setRecording, useLocal
body += '"time":"' + formattedDate+'"'
body += " }"
console.log(body)
const fetchResponse = await fetch(await fetch(getURL('start', useLocalhost)), {
const fetchResponse = await fetch(getURL('start', useLocalhost), {
method: 'POST',
body: body,
headers: {
Expand Down Expand Up @@ -91,7 +91,7 @@ export function StartStopButton({fields, data, recording, setRecording, useLocal
}

return (
<div>
<div className="centered-container">
{recording && (
<article className={"prose"}>
<p>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

.centered-container {
text-align: center;
}

0 comments on commit 3431ab6

Please sign in to comment.