diff --git a/packages/web/components/templates/SettingsMenu.tsx b/packages/web/components/templates/SettingsMenu.tsx index 48cb8a772..7789f960a 100644 --- a/packages/web/components/templates/SettingsMenu.tsx +++ b/packages/web/components/templates/SettingsMenu.tsx @@ -42,6 +42,42 @@ const StyledLink = styled(SpanBox, { whiteSpace: 'nowrap', }) +type ExternalLinkProps = { + title: string + destination: string +} + +function ExternalLink(props: ExternalLinkProps): JSX.Element { + return ( + a': { + backgroundColor: 'transparent', + textDecoration: 'none', + }, + }} + title={props.title} + > + + + {props.title} + + + + + ) +} + export function SettingsMenu(): JSX.Element { const section1 = [ { name: 'Account', destination: '/settings/account' }, @@ -112,7 +148,14 @@ export function SettingsMenu(): JSX.Element { style="link" onClick={(event) => { if (window.Intercom) { - window.Intercom('show') + try { + window.Intercom('show') + } catch (error) { + console.log(error) + alert('error opening system feedback') + } + } else { + alert('error opening system feedback') } event.preventDefault() }} @@ -120,35 +163,14 @@ export function SettingsMenu(): JSX.Element { Feedback - a': { - backgroundColor: 'transparent', - textDecoration: 'none', - }, - }} - > - - - Documentation - - - - + + {/* This spacer pushes library content to the right of