diff --git a/src/App.js b/src/App.js
index 2fe3a8f..39717aa 100644
--- a/src/App.js
+++ b/src/App.js
@@ -4,6 +4,7 @@ import React, {useState,useEffect,useReducer} from 'react';
import useGlobalKeyDown from 'react-global-key-down-hook'
import Toggle from 'react-toggle' //Tooltip props: http://aaronshaf.github.io/react-toggle/
import Helmet from 'react-helmet'
+import { ExpandTooltip } from './components/ExpandTooltip';
import {XSquareFill, PlusCircle, LifePreserver, Server, CloudUploadFill} from 'react-bootstrap-icons'
@@ -573,7 +574,7 @@ function LoginForm(p) {
const [username,setUsername] = useState("")
const [password,setPassword] = useState("")
const [rememberMe,setRememberMe] = useState(false)
- return <>Login Form here.>
+ return <>{setUsername(p.currentTarget.value)}} placeholder="Username"/>>
}
diff --git a/src/TestPanel.js b/src/TestPanel.js
index e7197f8..2ffa068 100644
--- a/src/TestPanel.js
+++ b/src/TestPanel.js
@@ -1,7 +1,7 @@
import React, { useEffect,useState,useRef } from 'react';
-import ReactTooltip from 'react-tooltip' //https://wwayne.github.io/react-tooltip/
import Modal from 'react-modal'
import { DisplayIcon } from './DEFAULTS';
+import { ExpandTooltip } from './components/ExpandTooltip';
/**
* Hook that alerts clicks outside of the passed ref
@@ -79,19 +79,6 @@ function PageControl(p) {
}
-function ExpandTooltip(p) {
- return <>{p.children} {
- const d = document.documentElement;
- left = Math.min(d.clientWidth - node.clientWidth, left);
- top = Math.min(d.clientHeight - node.clientHeight, top);
- left = Math.max(0, left);
- top = Math.max(0, top);
- return { top, left }
-} }>{p.tooltip}>
-}
-
function Class(p) {
const CLASSES = p.GetData("class")
const class_obj = CLASSES[p.name]
diff --git a/src/components/ExpandTooltip.js b/src/components/ExpandTooltip.js
new file mode 100644
index 0000000..5f5d9c4
--- /dev/null
+++ b/src/components/ExpandTooltip.js
@@ -0,0 +1,16 @@
+import ReactTooltip from 'react-tooltip' //https://wwayne.github.io/react-tooltip/
+
+function ExpandTooltip(p) {
+ return <>{p.children} {
+ const d = document.documentElement;
+ left = Math.min(d.clientWidth - node.clientWidth, left);
+ top = Math.min(d.clientHeight - node.clientHeight, top);
+ left = Math.max(0, left);
+ top = Math.max(0, top);
+ return { top, left }
+} }>{p.tooltip}>
+}
+
+export {ExpandTooltip}
\ No newline at end of file
diff --git a/src/style.css b/src/style.css
index 2c81e00..e9c2035 100644
--- a/src/style.css
+++ b/src/style.css
@@ -1236,4 +1236,7 @@ p.adminNav hr {
width: 124px;
box-sizing: content-box;
border-style: solid;
+}
+.formField{
+ font-weight:bold;
}
\ No newline at end of file