Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bortoz committed Sep 9, 2024
1 parent 86e2ed4 commit 481d2ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@olinfo/react-components",
"version": "0.7.3",
"version": "0.7.4",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -9,8 +9,9 @@
"scripts": {
"lint": "biome check --write",
"watch": "tsup --watch",
"prebuild": "rm -rf dist",
"build": "tsup --minify"
"prebuild": "biome check && rm -rf dist",
"build": "tsup --minify",
"prepack": "tsup --minify"
},
"dependencies": {
"@olinfo/training-api": "^0.2",
Expand Down
4 changes: 2 additions & 2 deletions react-components/src/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function Layout({ children }: { children: ReactNode }) {
<NotificationsContext.Provider value={{ notify }}>
<div className="flex min-h-dvh w-full flex-col">
{children}
<div className="toast z-50">
<div className="toast left-0 z-50 items-end">
{notifications.map((props, i) => (
<Notifications {...props} key={i} />
))}
Expand All @@ -66,7 +66,7 @@ function Notifications({ type, message, timestamp }: NotificationsProps) {

return (
<WithinTimeRange end={end}>
<div className={clsx("alert w-screen max-w-sm", type)}>
<div className={clsx("alert max-w-sm", type)}>
<div className="flex gap-4">
{type === "alert-success" ? <Check /> : <AlertTriangle />}
<div className="text-wrap">{message}</div>
Expand Down

0 comments on commit 481d2ee

Please sign in to comment.