diff --git a/src/components/csv/csv-information-dialog.tsx b/src/components/csv/csv-information-dialog.tsx index a6b14d1..64cdb3b 100644 --- a/src/components/csv/csv-information-dialog.tsx +++ b/src/components/csv/csv-information-dialog.tsx @@ -1,4 +1,5 @@ import { Download, ExternalLink, FileText, Info } from "lucide-react" +import { siteConfig } from "@/config/site" import { Button } from "@/components/ui/button" import { Dialog, @@ -45,7 +46,7 @@ export function CSVInformationDialog() { Highlight the entire results table with including the headers

Selecting academic results table in WES @@ -57,7 +58,7 @@ export function CSVInformationDialog() { Copy and paste into Google Sheets or Microsoft Excel

Pasted data in Google Sheets @@ -69,7 +70,7 @@ export function CSVInformationDialog() { File → Download → Comma-separated values (.csv)

Saving as CSV in Google Sheets @@ -87,7 +88,7 @@ export function CSVInformationDialog() { type="button" variant="outline" size="sm" - onClick={() => window.open('https://github.com/ligsnf/monash-grades-calculator/blob/main/public/example_results.csv', '_blank')} + onClick={() => window.open(`${siteConfig.links.github}/blob/main/public/example_results.csv`, '_blank')} > View @@ -96,7 +97,7 @@ export function CSVInformationDialog() { type="button" variant="outline" size="sm" - onClick={() => window.open('/monash-grades-calculator/example_results.csv', '_blank')} + onClick={() => window.open(`${siteConfig.basePath}example_results.csv`, '_blank')} > Download diff --git a/src/components/results/result-form-row.tsx b/src/components/results/result-form-row.tsx index 31857c9..feab3db 100644 --- a/src/components/results/result-form-row.tsx +++ b/src/components/results/result-form-row.tsx @@ -167,7 +167,7 @@ export function ResultFormRow({ defaultValues, onDelete, onChange, gridCols }: R onClick={onDelete} className="h-8 px-2 md:h-10 md:px-3" > - + diff --git a/src/components/site-header.tsx b/src/components/site-header.tsx index 5123fba..5592268 100644 --- a/src/components/site-header.tsx +++ b/src/components/site-header.tsx @@ -1,4 +1,5 @@ import { Link } from '@tanstack/react-router' +import { siteConfig } from "@/config/site" import { ModeToggle } from "@/components/theme/mode-toggle" import { Icons } from "@/components/icons" import { Button } from "@/components/ui/button" @@ -75,11 +76,7 @@ export function SiteHeader() { {/* Right side items */}