fix(ui): hide Plex alert after setup and add local login warning to local user modal (#1600)

This commit is contained in:
TheCatLady
2021-05-08 00:10:47 -04:00
committed by GitHub
parent 0c4fb6446b
commit 694d0ffcf6
3 changed files with 40 additions and 19 deletions

View File

@@ -262,25 +262,27 @@ const SettingsPlex: React.FC<SettingsPlexProps> = ({ onComplete }) => {
<p className="description">
{intl.formatMessage(messages.plexsettingsDescription)}
</p>
<div className="section">
<Alert
title={intl.formatMessage(messages.settingUpPlexDescription, {
RegisterPlexTVLink: function RegisterPlexTVLink(msg) {
return (
<a
href="https://plex.tv"
className="text-white transition duration-300 hover:underline"
target="_blank"
rel="noreferrer"
>
{msg}
</a>
);
},
})}
type="info"
/>
</div>
{!!onComplete && (
<div className="section">
<Alert
title={intl.formatMessage(messages.settingUpPlexDescription, {
RegisterPlexTVLink: function RegisterPlexTVLink(msg) {
return (
<a
href="https://plex.tv"
className="text-white transition duration-300 hover:underline"
target="_blank"
rel="noreferrer"
>
{msg}
</a>
);
},
})}
type="info"
/>
</div>
)}
</div>
<Formik
initialValues={{