Fix Capitalization

This commit is contained in:
Larvey
2022-06-16 17:07:29 -04:00
committed by ajnart
parent 6ee7d6ec8d
commit a8c0dfcd0c
2 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ import { IconApps as Apps } from '@tabler/icons';
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
import { useDebouncedValue } from '@mantine/hooks'; import { useDebouncedValue } from '@mantine/hooks';
import { useConfig } from '../../tools/state'; import { useConfig } from '../../tools/state';
import { ServiceTypeList, statusCodes, targets } from '../../tools/types'; import { ServiceTypeList, StatusCodes, Targets } from '../../tools/types';
export function AddItemShelfButton(props: any) { export function AddItemShelfButton(props: any) {
const [opened, setOpened] = useState(false); const [opened, setOpened] = useState(false);
@@ -341,7 +341,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
<MultiSelect <MultiSelect
required required
label="HTTP Status Codes" label="HTTP Status Codes"
data={statusCodes} data={StatusCodes}
placeholder="Select valid status codes" placeholder="Select valid status codes"
clearButtonLabel="Clear selection" clearButtonLabel="Clear selection"
nothingFound="Nothing found" nothingFound="Nothing found"
@@ -352,7 +352,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
/> />
<Select <Select
label="Open Tab in: " label="Open Tab in: "
data={targets} data={Targets}
defaultValue="_blank" defaultValue="_blank"
placeholder="Pick one" placeholder="Pick one"
{...form.getInputProps('target')} {...form.getInputProps('target')}

View File

@@ -31,7 +31,7 @@ interface ConfigModule {
}; };
} }
export const statusCodes = [ export const StatusCodes = [
{value: '200', label: '200 - OK', group:'Sucessful responses'}, {value: '200', label: '200 - OK', group:'Sucessful responses'},
{value: '204', label: '204 - No Content', group:'Sucessful responses'}, {value: '204', label: '204 - No Content', group:'Sucessful responses'},
{value: '301', label: '301 - Moved Permanently', group:'Redirection responses'}, {value: '301', label: '301 - Moved Permanently', group:'Redirection responses'},
@@ -52,7 +52,7 @@ export const statusCodes = [
{value: '054', label: '504 - Gateway Timeout Error', group:'Server error responses'}, {value: '054', label: '504 - Gateway Timeout Error', group:'Server error responses'},
]; ];
export const targets = [ export const Targets = [
{value: '_blank', label: 'New Tab'}, {value: '_blank', label: 'New Tab'},
{value: '_top', label: 'Same Window'} {value: '_top', label: 'Same Window'}
] ]