refactor(web/input): move field components into fields folder

This commit is contained in:
Luke
2022-10-27 14:22:15 +02:00
parent d4dc68f21e
commit 8ad04de0bc
6 changed files with 14 additions and 16 deletions

View File

@@ -1,8 +1,7 @@
import { Box, Checkbox, HStack, Text } from '@chakra-ui/react';
import { useEffect } from 'react';
import { ICheckbox } from '../../../interfaces/dialog';
import InfoTooltip from './InfoTooltip';
import Label from './Label';
import { ICheckbox } from '../../../../interfaces/dialog';
import Label from '../Label';
interface Props {
row: ICheckbox;

View File

@@ -1,8 +1,8 @@
import { Box, InputGroup, InputLeftElement, InputRightElement, Input } from '@chakra-ui/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useEffect } from 'react';
import { IInput } from '../../../interfaces/dialog';
import Label from './Label';
import { IInput } from '../../../../interfaces/dialog';
import Label from '../Label';
interface Props {
row: IInput;

View File

@@ -1,6 +1,5 @@
import {
Box,
Text,
NumberInput,
NumberInputField,
NumberInputStepper,
@@ -9,9 +8,9 @@ import {
InputLeftElement,
} from '@chakra-ui/react';
import { useEffect } from 'react';
import { INumber } from '../../../interfaces/dialog';
import { INumber } from '../../../../interfaces/dialog';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import Label from './Label';
import Label from '../Label';
interface Props {
row: INumber;

View File

@@ -1,6 +1,6 @@
import { Box, Select } from '@chakra-ui/react';
import { useEffect } from 'react';
import { ISelect } from '../../../interfaces/dialog';
import { ISelect } from '../../../../interfaces/dialog';
interface Props {
row: ISelect;

View File

@@ -1,7 +1,7 @@
import { Box, Text, Slider, SliderTrack, SliderFilledTrack, SliderThumb, HStack, Tooltip } from '@chakra-ui/react';
import { useEffect, useState } from 'react';
import { ISlider } from '../../../interfaces/dialog';
import Label from './Label';
import { ISlider } from '../../../../interfaces/dialog';
import Label from '../Label';
interface Props {
row: ISlider;