major scoring implementation, major frontend work

This commit is contained in:
2024-12-14 01:05:26 -06:00
parent 6f0b2050ad
commit 7fc5980e3b
15 changed files with 541 additions and 75 deletions

View File

@@ -9,6 +9,7 @@ function App() {
async function invoke() {
const offers = await Search();
console.log({ offer: offers[0] });
offers.sort((a, b) => b.Score - a.Score);
setState(offers);
}
@@ -18,10 +19,12 @@ function App() {
return (
<div id="App">
<div className="p-4" onClick={invoke}>
{state?.map((offer) => (
<Offer offer={offer} />
))}
<div className="p-4">
<div className="space-y-3 flex flex-col justify-items-center">
{state?.map((offer) => (
<Offer offer={offer} />
))}
</div>
</div>
</div>
);