fix style issues in frontend (#7163)

This commit is contained in:
Matthias Mair 2024-05-05 11:31:19 +02:00 committed by GitHub
parent e4658eb899
commit 3c0bb7d959
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 5 additions and 6 deletions

View File

@ -27,7 +27,7 @@ export function useFilters(props: UseFilterProps) {
return await api
.request({
url: props.url,
method: props.method || 'GET',
method: props.method ?? 'GET',
params: props.params
})
.then((response) => {

View File

@ -13,7 +13,7 @@ import {
import { CHART_COLORS } from '../../../components/charts/colors';
import { tooltipFormatter } from '../../../components/charts/tooltipFormatter';
import { formatCurrency, renderDate } from '../../../defaults/formatters';
import { formatCurrency } from '../../../defaults/formatters';
import { ApiEndpoints } from '../../../enums/ApiEndpoints';
import { useTable } from '../../../hooks/UseTable';
import { apiUrl } from '../../../states/ApiState';

View File

@ -9,7 +9,7 @@ import {
IconPaperclip
} from '@tabler/icons-react';
import { ReactNode, useMemo } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
import { useParams } from 'react-router-dom';
import { DetailsField, DetailsTable } from '../../components/details/Details';
import { DetailsImage } from '../../components/details/DetailsImage';

View File

@ -8,7 +8,7 @@ import {
IconPaperclip
} from '@tabler/icons-react';
import { ReactNode, useMemo } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
import { useParams } from 'react-router-dom';
import { DetailsField, DetailsTable } from '../../components/details/Details';
import { DetailsImage } from '../../components/details/DetailsImage';

View File

@ -11,7 +11,7 @@ import {
IconTruckLoading
} from '@tabler/icons-react';
import { ReactNode, useMemo } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
import { useParams } from 'react-router-dom';
import { DetailsField, DetailsTable } from '../../components/details/Details';
import { DetailsImage } from '../../components/details/DetailsImage';

View File

@ -5,7 +5,6 @@ import { AddItemButton } from '../../components/buttons/AddItemButton';
import { PartHoverCard } from '../../components/images/Thumbnail';
import { ProgressBar } from '../../components/items/ProgressBar';
import { RenderUser } from '../../components/render/User';
import { renderDate } from '../../defaults/formatters';
import { ApiEndpoints } from '../../enums/ApiEndpoints';
import { ModelType } from '../../enums/ModelType';
import { UserRoles } from '../../enums/Roles';