diff --git a/bun.lock b/bun.lock index 838a47c..ebac128 100644 --- a/bun.lock +++ b/bun.lock @@ -8,6 +8,7 @@ "@tailwindcss/vite": "^4.1.14", "react": "^19.1.1", "react-dom": "^19.1.1", + "react-wrap-balancer": "^1.1.1", "tailwindcss": "^4.1.14", }, "devDependencies": { @@ -503,6 +504,8 @@ "react-refresh": ["react-refresh@0.17.0", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="], + "react-wrap-balancer": ["react-wrap-balancer@1.1.1", "", { "peerDependencies": { "react": ">=16.8.0 || ^17.0.0 || ^18" } }, "sha512-AB+l7FPRWl6uZ28VcJ8skkwLn2+UC62bjiw8tQUrZPlEWDVnR9MG0lghyn7EyxuJSsFEpht4G+yh2WikEqQ/5Q=="], + "resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="], "reusify": ["reusify@1.1.0", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="], diff --git a/package.json b/package.json index 084259a..89c8e65 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@tailwindcss/vite": "^4.1.14", "react": "^19.1.1", "react-dom": "^19.1.1", + "react-wrap-balancer": "^1.1.1", "tailwindcss": "^4.1.14" }, "devDependencies": { diff --git a/src/App.tsx b/src/App.tsx index 77b045d..d13ce31 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from 'react' import { ArrowSquareOut, ChatCircle, ArrowUp, Clock } from '@phosphor-icons/react' +import Balancer from 'react-wrap-balancer' interface AlgoliaStory { objectID: string @@ -95,7 +96,7 @@ function App() { if (loading) { return (
Loading...
+Loading...
{error}
+{error}
+
Top stories from the last three months