Skip to content

Commit f4adca9

Browse files
authored
Dashboard UI updates (#545)
1 parent 77d25d7 commit f4adca9

File tree

41 files changed

+4448
-2057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4448
-2057
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@
9696
"vite-bundle-visualizer": "^1.2.1",
9797
"vite-plugin-copy": "^0.1.6"
9898
}
99-
}
99+
}

frontend/public/logo-wide-white-text.svg

Lines changed: 589 additions & 0 deletions
Loading

frontend/src/App.tsx

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {FC, PropsWithChildren, useEffect, useRef, useState} from "react";
1+
import React, {FC, PropsWithChildren, useEffect} from "react";
22
import {MantineProvider} from "@mantine/core";
33
import {Notifications} from "@mantine/notifications";
44
import {i18n} from "@lingui/core";
@@ -15,7 +15,6 @@ import "@mantine/dropzone/styles.css";
1515
import "@mantine/charts/styles.css";
1616
import "./styles/global.scss";
1717
import {isSsr} from "./utilites/helpers.ts";
18-
import {dynamicActivateLocale, getSupportedLocale} from "./locales";
1918
import {StartupChecks} from "./StartupChecks.tsx";
2019
import {ThirdPartyScripts} from "./components/common/ThirdPartyScripts";
2120

@@ -33,26 +32,22 @@ export const App: FC<
3332
}>
3433
> = (props) => {
3534
const [isLoadedOnBrowser, setIsLoadedOnBrowser] = React.useState(false);
36-
const localeActivated = useRef(false);
37-
const [loaded, setLoaded] = useState(isSsr());
3835

3936
useEffect(() => {
40-
if (!localeActivated.current && typeof window !== "undefined") {
41-
localeActivated.current = true;
42-
dynamicActivateLocale(getSupportedLocale(props.locale)).then(() => setLoaded(true));
43-
}
4437
setIsLoadedOnBrowser(!isSsr());
4538
}, []);
4639

47-
if (!loaded) {
48-
return <></>;
49-
}
50-
5140
return (
5241
<React.StrictMode>
5342
<div
5443
className="ssr-loader"
5544
style={{
45+
top: 0,
46+
left: 0,
47+
right: 0,
48+
bottom: 0,
49+
margin: 0,
50+
padding: 0,
5651
width: "100vw",
5752
height: "100vh",
5853
position: "fixed",

frontend/src/components/common/PoweredByFooter/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {t} from "@lingui/macro";
22
import classes from "./FloatingPoweredBy.module.scss";
33
import classNames from "classnames";
44
import React from "react";
5-
import {iHavePurchasedALicence} from "../../../utilites/helpers.ts";
5+
import {iHavePurchasedALicence, isHiEvents} from "../../../utilites/helpers.ts";
66

77
/**
88
* (c) Hi.Events Ltd 2025
@@ -25,7 +25,7 @@ export const PoweredByFooter = (props: React.DetailedHTMLProps<React.HTMLAttribu
2525
return (
2626
<div {...props} className={classNames(classes.poweredBy, props.className)}>
2727
<div className={classes.poweredByText}>
28-
{t`Powered by`}{' '}
28+
{isHiEvents() ? t`Event Ticketing by` : t`Powered by`} {' '}
2929
{/* eslint-disable-next-line lingui/no-unlocalized-strings */}
3030
<a href="https://hi.events?utm_source=app-powered-by-footer"
3131
target="_blank"

0 commit comments

Comments
 (0)