fix(frontend): fix modal design and rename some text for adding servers

This commit is contained in:
sct
2020-11-05 10:53:56 +00:00
parent 24a0423f3b
commit 46d99b02b1
4 changed files with 9 additions and 5 deletions

View File

@@ -116,7 +116,11 @@ const Modal: React.FC<ModalProps> = ({
{iconSvg} {iconSvg}
</div> </div>
)} )}
<div className="mt-3 text-center sm:mt-0 sm:text-left mb-6"> <div
className={`mt-3 text-center sm:mt-0 sm:text-left ${
iconSvg ? 'sm:ml-4' : 'mb-6'
}`}
>
{title && ( {title && (
<h3 <h3
className="text-lg leading-6 font-medium text-white" className="text-lg leading-6 font-medium text-white"

View File

@@ -186,7 +186,7 @@ const RadarrModal: React.FC<RadarrModalProps> = ({
? 'Saving...' ? 'Saving...'
: !!radarr : !!radarr
? 'Save Changes' ? 'Save Changes'
: 'Create Instance' : 'Add Server'
} }
secondaryButtonType="warning" secondaryButtonType="warning"
secondaryText={isTesting ? 'Testing...' : 'Test'} secondaryText={isTesting ? 'Testing...' : 'Test'}

View File

@@ -252,7 +252,7 @@ const SettingsServices: React.FC = () => {
clipRule="evenodd" clipRule="evenodd"
/> />
</svg> </svg>
Add New Radarr Instance Add Radarr Server
</Button> </Button>
</div> </div>
</li> </li>
@@ -314,7 +314,7 @@ const SettingsServices: React.FC = () => {
clipRule="evenodd" clipRule="evenodd"
/> />
</svg> </svg>
Add New Sonarr Instance Add Sonarr Server
</Button> </Button>
</div> </div>
</li> </li>

View File

@@ -186,7 +186,7 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
? 'Saving...' ? 'Saving...'
: !!sonarr : !!sonarr
? 'Save Changes' ? 'Save Changes'
: 'Create Instance' : 'Add Server'
} }
secondaryButtonType="warning" secondaryButtonType="warning"
secondaryText={isTesting ? 'Testing...' : 'Test'} secondaryText={isTesting ? 'Testing...' : 'Test'}