version id
This commit is contained in:
parent
acf0dda83f
commit
c850c40682
@ -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>
|
||||
</>
|
||||
|
2
packages/exchange-backoffice-ui/src/declaration.d.ts
vendored
Normal file
2
packages/exchange-backoffice-ui/src/declaration.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
declare const __VERSION__: string;
|
||||
declare const __GIT_HASH__: string;
|
@ -51,7 +51,7 @@ export function FormProvider<T>({
|
||||
const value = useRef(initialValue ?? {});
|
||||
useEffect(() => {
|
||||
return function onUnload() {
|
||||
value.current = {};
|
||||
value.current = initialValue ?? {};
|
||||
};
|
||||
});
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user