Skip to content

Commit ac474ab

Browse files
committed
update for dawn of the hunt
1 parent c43e49e commit ac474ab

File tree

5 files changed

+21
-24
lines changed

5 files changed

+21
-24
lines changed

public/poe/doth.webp

153 KB
Loading

src/pages/Home/CalculationView.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,24 @@ export function CalculationView() {
1414
const [value, setValue] = useState("1");
1515

1616
return (
17-
<div className={clsx("flex flex-col h-min gap-4", "lg:gap-6 lg:flex-row")}>
18-
<CurrencySelection selected={selected} setSelected={setSelected} />
17+
<div className='flex flex-col gap-4'>
18+
<div className='w-full flex justify-center'>
19+
<a href='https://pathofexile2.com/hunt' target='_blank'>
20+
<img alt='Dawn of the Hunt' src='/poe/doth.webp' className='w-44 sm:w-56 lg:w-64 transition-all' />
21+
</a>
22+
</div>
23+
<div className={clsx("flex flex-col h-min gap-4", "lg:gap-6 lg:flex-row")}>
24+
<CurrencySelection selected={selected} setSelected={setSelected} />
1925

20-
<div className='flex flex-col h-full gap-4 md:min-w-[410px]'>
21-
{selected ? (
22-
<CurrencyInput value={value} setValue={setValue} selected={selected} />
23-
) : (
24-
<p>Please select a currency</p>
25-
)}
26+
<div className='flex flex-col h-full gap-4 md:min-w-[410px]'>
27+
{selected ? (
28+
<CurrencyInput value={value} setValue={setValue} selected={selected} />
29+
) : (
30+
<p>Please select a currency</p>
31+
)}
2632

27-
<ErrorBoundary>{selected && <CalculationResults selected={selected} value={value} />}</ErrorBoundary>
33+
<ErrorBoundary>{selected && <CalculationResults selected={selected} value={value} />}</ErrorBoundary>
34+
</div>
2835
</div>
2936
</div>
3037
);

src/pages/Home/UpdateTime.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export function UpdateTime() {
2626
</p>
2727
<p className='text-primary-dark text-sm'>
2828
*Data is collected from{" "}
29-
<a href='https://www.pathofexile.com/trade2/search/poe2/Standard' target='_blank' className='underline'>
29+
<a
30+
href='https://www.pathofexile.com/trade2/search/poe2/Dawn%20of%20the%20Hunt'
31+
target='_blank'
32+
className='underline'>
3033
PoE 2 Trade
3134
</a>
3235
</p>

src/routes/layout/MainLayout.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Footer } from "./Footer";
77
import { AuthGuard } from "@/utils/AuthGuard";
88
import ErrorBoundary from "@/components/ErrorBoundary";
99
import { StorageProvider } from "@/utils/StorageProvider";
10-
import { Alert, AlertDescription, AlertTitle } from "@/components/shadcn/Alert";
1110

1211
export function MainLayout() {
1312
return (
@@ -17,15 +16,6 @@ export function MainLayout() {
1716
<ErrorBoundary>
1817
<Header />
1918
<SideMenu />
20-
21-
<Alert variant='warning' className='p-4 m-auto max-w-[400px]'>
22-
<AlertTitle>Dawn of the Hunt Update</AlertTitle>
23-
<AlertDescription>
24-
The website is currently <span className='font-bold underline'>outdated</span> and does not display
25-
current currency ratios. There is currently work in progress to update the page for 0.2.0 Dawn of the
26-
Hunt update.
27-
</AlertDescription>
28-
</Alert>
2919
<div className='w-full flex flex-1 justify-center px-4'>
3020
<Outlet />
3121
</div>

src/utils/CurrencyMapProvider.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export function CurrencyMapProvider({ mode, children }: CurrencyMapProviderProps
3232

3333
const fetchCurrencyData = async () => {
3434
try {
35+
const collectionRef = collection(db, gameVersion);
3536
if (mode === "latest") {
36-
const collectionRef = collection(db, gameVersion);
3737
const q = query(collectionRef, orderBy("meta.createdAt", "desc"), limit(1));
3838
const querySnapshot = await getDocs(q);
3939

@@ -47,9 +47,6 @@ export function CurrencyMapProvider({ mode, children }: CurrencyMapProviderProps
4747
}
4848
} else if (mode === "monthly") {
4949
const thirtyDaysAgo = sub(new Date(), { days: 30 });
50-
51-
const collectionRef = collection(db, "rates");
52-
5350
const q = query(
5451
collectionRef,
5552
where("meta.createdAt", ">=", thirtyDaysAgo.toISOString()),

0 commit comments

Comments
 (0)