Skip to content

Commit

Permalink
fix(frontend): fix modal design and rename some text for adding servers
Browse files Browse the repository at this point in the history
  • Loading branch information
sct committed Nov 5, 2020
1 parent 24a0423 commit 46d99b0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/components/Common/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ const Modal: React.FC<ModalProps> = ({
{iconSvg}
</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 && (
<h3
className="text-lg leading-6 font-medium text-white"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings/RadarrModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const RadarrModal: React.FC<RadarrModalProps> = ({
? 'Saving...'
: !!radarr
? 'Save Changes'
: 'Create Instance'
: 'Add Server'
}
secondaryButtonType="warning"
secondaryText={isTesting ? 'Testing...' : 'Test'}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Settings/SettingsServices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const SettingsServices: React.FC = () => {
clipRule="evenodd"
/>
</svg>
Add New Radarr Instance
Add Radarr Server
</Button>
</div>
</li>
Expand Down Expand Up @@ -314,7 +314,7 @@ const SettingsServices: React.FC = () => {
clipRule="evenodd"
/>
</svg>
Add New Sonarr Instance
Add Sonarr Server
</Button>
</div>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings/SonarrModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
? 'Saving...'
: !!sonarr
? 'Save Changes'
: 'Create Instance'
: 'Add Server'
}
secondaryButtonType="warning"
secondaryText={isTesting ? 'Testing...' : 'Test'}
Expand Down

0 comments on commit 46d99b0

Please sign in to comment.