diff options
Diffstat (limited to 'packages/exchange-backoffice-ui/src/Dashborad.tsx')
-rw-r--r-- | packages/exchange-backoffice-ui/src/Dashborad.tsx | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/packages/exchange-backoffice-ui/src/Dashborad.tsx b/packages/exchange-backoffice-ui/src/Dashborad.tsx index 80df4127a..4fdb7415a 100644 --- a/packages/exchange-backoffice-ui/src/Dashborad.tsx +++ b/packages/exchange-backoffice-ui/src/Dashborad.tsx @@ -157,6 +157,9 @@ function classNames(...classes: string[]) { * * 4.- tooltip are not placed correctly: the arrow should point the question mark * and the text area should be bigger + * + * 5.- date field should have the calendar icon clickable so the user can select date without + * writing text with the correct format */ export function Dashboard({ @@ -165,19 +168,16 @@ export function Dashboard({ children?: ComponentChildren; }): VNode { const [sidebarOpen, setSidebarOpen] = useState(false); - const [selectedForm, setSelectedForm] = useState(7); + const [selectedForm, setSelectedForm] = useState(0); function changeForm(next: number) { setSelectedForm(next); } const logRef = useRef<HTMLPreElement>(null); const storedValue = { - fullName: "the logged fullName", + fullName: "loggedIn_user_fullname", when: { t_ms: new Date().getTime(), }, - originOfAssets: { - currency: "usd", - }, }; function showFormOnSidebar(v: any) { if (!logRef.current) return; @@ -188,6 +188,16 @@ export function Dashboard({ showFormOnSidebar(storedValue); }); + const GIT_HASH = + typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined; + const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : undefined; + + const versionText = VERSION + ? GIT_HASH + ? `Version ${VERSION} (${GIT_HASH.substring(0, 8)})` + : VERSION + : ""; + const showingFrom = navigation[selectedForm]; return ( <> @@ -531,6 +541,17 @@ export function Dashboard({ </div> </div> </main> + + <footer class="bg-white"> + <div class="mx-auto px-4 py-2 md:flex md:items-center md:justify-between lg:px-8"> + <div class="mt-8 md:order-1 md:mt-0"> + <p class="text-center text-xs leading-5 text-gray-500"> + Copyright © 2014—2023 Taler Systems SA. + {versionText} + </p> + </div> + </div> + </footer> </div> </div> </> |