diff --git a/frontend/components/dashboard/datalabeling.tsx b/frontend/components/dashboard/datalabeling.tsx index 4e0922e..fb2d7b9 100644 --- a/frontend/components/dashboard/datalabeling.tsx +++ b/frontend/components/dashboard/datalabeling.tsx @@ -169,6 +169,10 @@ export default function DataLabeling({}: Props) { return `https://www.edmunds.com/${make}/${model}/${year}/?ref=smare`; }; + const createGoogleLink = (make: string, model: string, year: string) => { + return `https://www.google.com/search?q=${make}+${model}+${year}`; + } + const removeQRCode = (text: string) => { return text.replace("QR Code Link to This Post", ""); }; @@ -273,7 +277,7 @@ export default function DataLabeling({}: Props) { return (
-
+
@@ -386,7 +390,7 @@ export default function DataLabeling({}: Props) {
-
+
{decodeString(listingData?.title as string)} @@ -429,7 +433,7 @@ export default function DataLabeling({}: Props) {
{listingData?.link && ( - @@ -444,8 +448,8 @@ export default function DataLabeling({}: Props) { target="_blank" className="mt-2" > - )} @@ -459,8 +463,23 @@ export default function DataLabeling({}: Props) { target="_blank" className="mt-2" > - + + )} + {listingData?.make && listingData?.model && listingData?.year && ( + + )}