mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
Fix Capitalization
This commit is contained in:
@@ -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')}
|
||||
|
||||
@@ -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'}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user