Update capitalization (#4298)

This commit is contained in:
Opender Singh 2021-12-11 03:03:55 +13:00 committed by GitHub
parent e5b6f9034e
commit c020d10e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,17 +54,17 @@ export const ControlledSetting: FC<{ setting: keyof Settings }> = ({ children, s
let controllerName: string | null = null;
switch (controller) {
case 'insomnia-config':
helpText = `this value is controlled by \`settings.${setting}\` in your Insomnia Config`;
controllerName = 'insomnia config';
helpText = `This value is controlled by \`settings.${setting}\` in your Insomnia config`;
controllerName = 'Insomnia config';
break;
case 'incognitoMode':
helpText = 'this value is controlled by Incognito Mode';
controllerName = 'incognito mode';
helpText = 'This value is controlled by Incognito Mode';
controllerName = 'Incognito Mode';
break;
default:
helpText = `this value is controlled by ${controller}`;
helpText = `This value is controlled by ${controller}`;
controllerName = controller || 'another setting';
}
@ -77,7 +77,7 @@ export const ControlledSetting: FC<{ setting: keyof Settings }> = ({ children, s
<Helper>
<HelpTooltip info>{helpText}</HelpTooltip>{' '}
<HelperText>controlled by {controllerName}</HelperText>
<HelperText>Controlled by {controllerName}</HelperText>
</Helper>
</Wrapper>
);