From e807a3e08130ce77f672bf93490c269e964e2378 Mon Sep 17 00:00:00 2001 From: aerhartic Date: Sun, 19 Jan 2025 12:15:30 -0500 Subject: [PATCH] feat: fixed hyperlink and summary --- components/bill/SmartDisclaimer.tsx | 61 ++++++++++++++++++----------- public/locales/en/common.json | 2 +- 2 files changed, 39 insertions(+), 24 deletions(-) diff --git a/components/bill/SmartDisclaimer.tsx b/components/bill/SmartDisclaimer.tsx index 2ebeac03e..78ad631f8 100644 --- a/components/bill/SmartDisclaimer.tsx +++ b/components/bill/SmartDisclaimer.tsx @@ -1,9 +1,10 @@ -import { useTranslation } from "next-i18next" +import { Trans, useTranslation } from "next-i18next" import Image from "react-bootstrap/Image" import styled from "styled-components" import { useMediaQuery } from "usehooks-ts" import { Col, Row } from "../bootstrap" import { NavLink } from "components/Navlink" +import * as links from "../links" const SmartTagDesc = styled(Row)` font-size: 12px; @@ -17,38 +18,36 @@ export const SmartDisclaimer = () => { <> {isMobile ? (
- {t("bill.smart_summary")} + + {t("bill.smart_summary")} + - { - "This content has been generated using artificial intelligence and may not accurately reflect the details of the legislation." - } - {`Learn more about How MAPLE Uses AI. `} - { - "To report an inaccuracy or to suggest an improvement, please email admin@mapletestimony.org" - } + + ]} + />
) : ( - + {t("bill.smart_tag")} {t("bill.smart_summary")} - { - "This content has been generated using artificial intelligence and may not accurately reflect the details of the legislation." - } - {`Learn more about How MAPLE Uses AI. `} - { - "To report an inaccuracy or to suggest an improvement, please email admin@mapletestimony.org" - } + + ]} + /> @@ -56,3 +55,19 @@ export const SmartDisclaimer = () => { ) } + +/* + + { + "This content has been generated using artificial intelligence and may not accurately reflect the details of the legislation." + } + {`Learn more about How MAPLE Uses AI. `} + { + "To report an inaccuracy or to suggest an improvement, please email admin@mapletestimony.org" + } + + +*/ diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 4085fac83..6f36654a2 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -31,7 +31,7 @@ }, "smart_tag": "AI Smart Tag", "smart_summary": "Smart Summary & Tags", - "smart_disclaimer": "This content has been generated using artificial intelligence and may not accurately reflect the details of the legislation. Learn more about {{howToLink}}. To report an inaccuracy or to suggest an improvement, please email admin@mapletestimony.org" + "smart_disclaimer": "This content has been generated using artificial intelligence and may not accurately reflect the details of the legislation. Learn more about <0>how MAPLE uses AI. To report an inaccuracy or to suggest an improvement, please email admin@mapletestimony.org" }, "bill_updates": "Bill Updates", "browse_bills": "browse bills",