forked from RCMast3r/data_acq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
|
||
export function AddrToggle({serverAddr, setServerAddr}) { | ||
|
||
function handleChange(e) { | ||
if(e.target.checked) { | ||
setServerAddr("http://localhost:6969") | ||
} else { | ||
setServerAddr("http://192.168.203.1:6969") | ||
} | ||
} | ||
|
||
return ( | ||
<div className={"flex flex-row items-center w-80"}> | ||
<div className={"grow w-max"}/> | ||
<article className={"prose pr-2"}> | ||
<p> DO NOT TOUCH -></p> | ||
</article> | ||
<input type={"checkbox"} className={"toggle toggle-primary"} onChange={handleChange}/> | ||
</div> | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
|
||
export function FieldTitle({fields, index}) { | ||
|
||
return ( | ||
<div className={"flex flex-row items-center w-80"}> | ||
<article className={"prose"}> | ||
<h4>{fields[index].displayName}:</h4> | ||
</article> | ||
<div className={"grow w-max"}/> | ||
</div> | ||
) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters