mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
🚨 Warnings
This commit is contained in:
@@ -1,21 +1,9 @@
|
|||||||
/* eslint-disable @next/next/no-img-element */
|
/* eslint-disable @next/next/no-img-element */
|
||||||
import {
|
import { Group, Select, SelectItem, Text } from '@mantine/core';
|
||||||
Alert,
|
|
||||||
Card,
|
|
||||||
Group,
|
|
||||||
PasswordInput,
|
|
||||||
Select,
|
|
||||||
SelectItem,
|
|
||||||
Space,
|
|
||||||
Text,
|
|
||||||
TextInput,
|
|
||||||
} from '@mantine/core';
|
|
||||||
import { UseFormReturnType } from '@mantine/form';
|
import { UseFormReturnType } from '@mantine/form';
|
||||||
import { IconKey, IconUser } from '@tabler/icons';
|
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { forwardRef, useState } from 'react';
|
import { forwardRef, useState } from 'react';
|
||||||
import { ServiceType } from '../../../../../../../../../types/service';
|
import { ServiceType } from '../../../../../../../../types/service';
|
||||||
import { TextExplanation } from '../TextExplanation/TextExplanation';
|
|
||||||
|
|
||||||
interface IntegrationSelectorProps {
|
interface IntegrationSelectorProps {
|
||||||
form: UseFormReturnType<ServiceType, (item: ServiceType) => ServiceType>;
|
form: UseFormReturnType<ServiceType, (item: ServiceType) => ServiceType>;
|
||||||
|
|||||||
@@ -46,7 +46,10 @@ export const AvailableElementTypes = ({
|
|||||||
onClickUrl: '',
|
onClickUrl: '',
|
||||||
},
|
},
|
||||||
area: {
|
area: {
|
||||||
type: 'wrapper',
|
type: 'sidebar',
|
||||||
|
properties: {
|
||||||
|
location: 'right',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
shape: {
|
shape: {
|
||||||
location: {
|
location: {
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
import { ActionIcon, Button, Group, Text } from '@mantine/core';
|
import { Button, Text } from '@mantine/core';
|
||||||
import { IconArrowNarrowLeft } from '@tabler/icons';
|
import { IconArrowNarrowLeft } from '@tabler/icons';
|
||||||
|
|
||||||
interface SelectorBackArrowProps {
|
interface SelectorBackArrowProps {
|
||||||
onClickBack: () => void;
|
onClickBack: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SelectorBackArrow = ({ title, onClickBack }: SelectorBackArrowProps) => {
|
export const SelectorBackArrow = ({ onClickBack }: SelectorBackArrowProps) => (
|
||||||
return (
|
|
||||||
<Button
|
<Button
|
||||||
leftIcon={<IconArrowNarrowLeft />}
|
leftIcon={<IconArrowNarrowLeft />}
|
||||||
onClick={onClickBack}
|
onClick={onClickBack}
|
||||||
@@ -18,4 +17,3 @@ export const SelectorBackArrow = ({ title, onClickBack }: SelectorBackArrowProps
|
|||||||
<Text>See all available elements</Text>
|
<Text>See all available elements</Text>
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user