From cf7ebc488db33725444c428b4244d780ab9d123b Mon Sep 17 00:00:00 2001 From: sct Date: Tue, 2 Feb 2021 07:50:48 +0000 Subject: [PATCH] fix(frontend): use consistent spinner style on TitleCard/Plex Presets --- src/components/Settings/SettingsPlex.tsx | 31 +++++++++++++----------- src/components/TitleCard/index.tsx | 15 +----------- 2 files changed, 18 insertions(+), 28 deletions(-) diff --git a/src/components/Settings/SettingsPlex.tsx b/src/components/Settings/SettingsPlex.tsx index 57234ec96..f4afea7ac 100644 --- a/src/components/Settings/SettingsPlex.tsx +++ b/src/components/Settings/SettingsPlex.tsx @@ -12,6 +12,7 @@ import Badge from '../Common/Badge'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import * as Yup from 'yup'; import Alert from '../Common/Alert'; +import Spinner from '../../assets/spinner.svg'; const messages = defineMessages({ plexsettings: 'Plex Settings', @@ -437,20 +438,22 @@ const SettingsPlex: React.FC = ({ onComplete }) => { }} className="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-gray-500 rounded-r-md hover:bg-indigo-500 focus:outline-none focus:ring-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700" > - - - + {isRefreshingPresets ? ( + + ) : ( + + + + )} diff --git a/src/components/TitleCard/index.tsx b/src/components/TitleCard/index.tsx index 0ced3001b..17f1fa185 100644 --- a/src/components/TitleCard/index.tsx +++ b/src/components/TitleCard/index.tsx @@ -179,20 +179,7 @@ const TitleCard: React.FC = ({ leaveTo="opacity-0" >
- - - +