diff --git a/react-frontend/bun.lockb b/react-frontend/bun.lockb
index 4dcb424..e791da6 100755
Binary files a/react-frontend/bun.lockb and b/react-frontend/bun.lockb differ
diff --git a/react-frontend/package.json b/react-frontend/package.json
index ff97f0c..46b0575 100644
--- a/react-frontend/package.json
+++ b/react-frontend/package.json
@@ -15,6 +15,7 @@
"@radix-ui/react-dropdown-menu": "^2.0.5",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
+ "@radix-ui/react-toast": "^1.1.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"lucide-react": "^0.274.0",
diff --git a/react-frontend/src/App.tsx b/react-frontend/src/App.tsx
index 0b862c1..3fc580d 100644
--- a/react-frontend/src/App.tsx
+++ b/react-frontend/src/App.tsx
@@ -20,9 +20,13 @@ import {
TableHeader,
TableRow,
} from '@/components/ui/table'
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
+import { Toaster } from '@/components/ui/toaster'
+import { useToast } from '@/components/ui/use-toast'
+
import { useEffect, useState } from 'react'
-const backend_url = 'http://192.168.100.40:1234'
+const backend_url = 'http://192.168.100.40:3000'
type Shortener = {
id: number
@@ -57,6 +61,7 @@ export default function App() {
+
)
}
@@ -79,6 +84,7 @@ const CreateShortener = ({
}: {
getShorteners: () => Promise
}) => {
+ const [isOpen, setIsOpen] = useState(false)
const [link, setLink] = useState('')
const addShortener = async () => {
await fetch(backend_url + '/link', {
@@ -92,10 +98,13 @@ const CreateShortener = ({
}).then(() => {
getShorteners()
setLink('')
+ setIsOpen(false)
})
}
return (
-