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 { useDebouncedValue } from '@mantine/hooks';
import { useConfig } from '../../tools/state';
import { ServiceTypeList, statusCodes, targets } from '../../tools/types';
import { ServiceTypeList, StatusCodes, Targets } from '../../tools/types';
export function AddItemShelfButton(props: any) {
const [opened, setOpened] = useState(false);
@@ -341,7 +341,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
<MultiSelect
required
label="HTTP Status Codes"
data={statusCodes}
data={StatusCodes}
placeholder="Select valid status codes"
clearButtonLabel="Clear selection"
nothingFound="Nothing found"
@@ -352,7 +352,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
/>
<Select
label="Open Tab in: "
data={targets}
data={Targets}
defaultValue="_blank"
placeholder="Pick one"
{...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: '204', label: '204 - No Content', group:'Sucessful 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'},
];
export const targets = [
export const Targets = [
{value: '_blank', label: 'New Tab'},
{value: '_top', label: 'Same Window'}
]