diff --git a/app/soapbox/components/ui/modal/modal.tsx b/app/soapbox/components/ui/modal/modal.tsx index ab714b93c..54de440a4 100644 --- a/app/soapbox/components/ui/modal/modal.tsx +++ b/app/soapbox/components/ui/modal/modal.tsx @@ -73,7 +73,7 @@ const Modal: React.FC = ({ src={require('@tabler/icons/icons/x.svg')} title={intl.formatMessage(messages.close)} onClick={onClose} - className='text-gray-500 hover:text-gray-700' + className='text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-200' /> )} diff --git a/app/soapbox/features/public_layout/components/header.tsx b/app/soapbox/features/public_layout/components/header.tsx index 985fca476..2691df1e8 100644 --- a/app/soapbox/features/public_layout/components/header.tsx +++ b/app/soapbox/features/public_layout/components/header.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { defineMessages, useIntl } from 'react-intl'; +import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { useDispatch } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; @@ -30,10 +30,11 @@ const Header = () => { const soapboxConfig = useSoapboxConfig(); const pepeEnabled = soapboxConfig.getIn(['extensions', 'pepe', 'enabled']) === true; + const { links } = soapboxConfig; const features = useFeatures(); const instance = useAppSelector((state) => state.instance); - const isOpen = features.accountCreation && instance.registrations; + const isOpen = features.accountCreation && instance.registrations; const pepeOpen = useAppSelector(state => state.verification.getIn(['instance', 'registrations'], false) === true); const [isLoading, setLoading] = React.useState(false); @@ -92,6 +93,18 @@ const Header = () => { />
+ + {links.get('help') && ( + + + + )} + +