Skip to content

Commit

Permalink
refactor(web/input): move field components into fields folder
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Oct 27, 2022
1 parent d4dc68f commit 8ad04de
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
10 changes: 5 additions & 5 deletions web/src/features/dialog/InputDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { useNuiEvent } from '../../hooks/useNuiEvent';
import { useLocales } from '../../providers/LocaleProvider';
import { fetchNui } from '../../utils/fetchNui';
import { IInput, ICheckbox, ISelect, INumber, ISlider } from '../../interfaces/dialog';
import InputField from './components/input';
import CheckboxField from './components/checkbox';
import SelectField from './components/select';
import NumberField from './components/number';
import SliderField from './components/slider';
import InputField from './components/fields/input';
import CheckboxField from './components/fields/checkbox';
import SelectField from './components/fields/select';
import NumberField from './components/fields/number';
import SliderField from './components/fields/slider';

export interface InputProps {
heading: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
Box,
Text,
NumberInput,
NumberInputField,
NumberInputStepper,
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 8ad04de

Please sign in to comment.