Skip to content

Commit

Permalink
feat: Add timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
hampfh committed Feb 22, 2024
1 parent 24e2625 commit a85ab8d
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 100 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"eslint-plugin-react-refresh": "^0.4.3",
"postcss": "^8.4.27",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.2",
"typescript": "5.4.0-beta",
"vite": "^4.4.5"
}
}
56 changes: 28 additions & 28 deletions apps/dashboard/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apps/dashboard/src/components/ui/sonner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const Toaster = ({ ...props }: ToasterProps) => {
theme={theme as ToasterProps["theme"]}
className="toaster group"
toastOptions={{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
classNames: {
toast:
"group toast group-[.toaster]:bg-white group-[.toaster]:text-stone-950 group-[.toaster]:border-stone-200 group-[.toaster]:shadow-lg dark:group-[.toaster]:bg-stone-950 dark:group-[.toaster]:text-stone-50 dark:group-[.toaster]:border-stone-800",
Expand Down
20 changes: 11 additions & 9 deletions apps/dashboard/src/screens/dashboard/DashboardError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useSelector } from "react-redux"
import { selectErrors } from "../../store/form/form_selectors"
import { PrimaryFormHeader } from "../../forms/primary/Header"
import { LogoutButton } from "../../shared/LogoutButton"
import { selectErrors } from "../../store/form/form_selectors"

const ERRORS = {
not_authorized: (
Expand All @@ -12,18 +12,20 @@ const ERRORS = {
</a>
</p>
),
user_did_not_sign_ir: (
<p>
You have not completed Initial Registration.
</p>
),
user_did_not_sign_ir: <p>You have not completed Initial Registration.</p>,
user_is_not_exhibitor: (
<p>
You did not get picked for the fair this year.
Unfortunetly we are at full captity as of right now, we might get
space for more exhibitors later and will contact you then.
</p>
),
user_has_no_company: <p>You are not associated with any company</p>,
cr_not_open: <p>We are working on this years final registration page, please come back later!</p>
cr_not_open: (
<p>
We are working on this years final registration page, please come
back later!
</p>
)
}

export function DashboardError() {
Expand All @@ -35,7 +37,7 @@ export function DashboardError() {
<div className="flex h-[100vh] w-[100vw] flex-col items-center justify-center">
<LogoutButton />
<p className="mb-4 text-4xl">Oups, something went wrong</p>
<div className="max-w-xl text-center mb-10">{ERRORS[error]}</div>
<div className="mb-10 max-w-xl text-center">{ERRORS[error]}</div>
<PrimaryFormHeader />
</div>
)
Expand Down
Loading

0 comments on commit a85ab8d

Please sign in to comment.