diff --git a/src/components/Common/Alert/index.tsx b/src/components/Common/Alert/index.tsx index c5c9c6afd..84c529c96 100644 --- a/src/components/Common/Alert/index.tsx +++ b/src/components/Common/Alert/index.tsx @@ -7,7 +7,9 @@ interface AlertProps { const Alert: React.FC = ({ title, children, type }) => { let design = { - color: 'yellow', + bgColor: 'bg-yellow-600', + titleColor: 'text-yellow-200', + textColor: 'text-yellow-300', svg: ( = ({ title, children, type }) => { switch (type) { case 'info': design = { - color: 'indigo', + bgColor: 'bg-indigo-600', + titleColor: 'text-indigo-200', + textColor: 'text-indigo-300', svg: ( = ({ title, children, type }) => { } return ( -
+
-
- {design.svg} -
+
{design.svg}
-

+

{title}

-
- {children} -
+
{children}
diff --git a/src/components/Settings/SettingsAbout/Releases/index.tsx b/src/components/Settings/SettingsAbout/Releases/index.tsx index c570f12f7..1e27c07dd 100644 --- a/src/components/Settings/SettingsAbout/Releases/index.tsx +++ b/src/components/Settings/SettingsAbout/Releases/index.tsx @@ -7,7 +7,7 @@ import Badge from '../../../Common/Badge'; import Button from '../../../Common/Button'; import Modal from '../../../Common/Modal'; import Transition from '../../../Transition'; -import { defineMessages, useIntl } from 'react-intl'; +import { defineMessages, FormattedRelativeTime, useIntl } from 'react-intl'; import globalMessages from '../../../../i18n/globalMessages'; const messages = defineMessages({ @@ -59,7 +59,7 @@ const Release: React.FC = ({ const intl = useIntl(); const [isModalOpen, setModalOpen] = useState(false); return ( -
+
= ({
-
+
+ + + {release.name} {isLatest && ( @@ -147,7 +156,7 @@ const Releases: React.FC = ({ currentVersion }) => { return (
-
+
{intl.formatMessage(messages.releases)}
{currentVersion.startsWith('develop-') && ( @@ -159,7 +168,7 @@ const Releases: React.FC = ({ currentVersion }) => { href="https://github.com/sct/overseerr" target="_blank" rel="noreferrer" - className="text-yellow-100 underline hover:text-white transition duration-300" + className="text-yellow-100 underline transition duration-300 hover:text-white" > {msg}