) => {
const { user } = useUser()
- // LaunchDarkly toggle for cms vs static data
+
return !user ? (
) : (
@@ -100,13 +40,22 @@ const USSFDocumentation = ({
content: (
{s.document.map((d: DocumentType) => (
- {
+ if (isPdf(d.file.url)) {
+ e.preventDefault()
+ handleOpenPdfLink(d.file.url)
+ } else return
+ }}
key={d.id}
- target="_blank"
rel="noreferrer noopener"
href={`${d.file.url}`}>
{d.title}
-
+
))}
),