Move types

This commit is contained in:
Thomas "ajnart" Camlong
2022-05-01 14:46:45 +02:00
parent 1bd7694b52
commit 65b4d35350
5 changed files with 6 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ import { useForm } from '@mantine/hooks';
import { motion } from 'framer-motion';
import { useState } from 'react';
import { Apps } from 'tabler-icons-react';
import { ServiceTypes } from './AppShelf.d';
import { ServiceTypes } from '../../tools/types';
export default function AddItemShelfItem(props: any) {
const { additem: addItem } = props;

View File

@@ -13,7 +13,6 @@ import {
} from '@mantine/core';
import { showNotification } from '@mantine/notifications';
import { AlertCircle, Cross, X } from 'tabler-icons-react';
import { serviceItem } from './AppShelf.d';
import AppShelfMenu from './AppShelfMenu';
import AddItemShelfItem from './AddAppShelfItem';
import { useServices } from '../../tools/state';

View File

@@ -19,7 +19,8 @@ import {
InfoCircle,
FileX,
} from 'tabler-icons-react';
import { Settings, loadSettings } from '../../tools/settings';
import { loadSettings } from '../../tools/settings';
import { Settings } from '../../tools/types';
export default function SearchBar(props: any) {
const [opened, setOpened] = useState(false);

View File

@@ -3,7 +3,8 @@ import { showNotification } from '@mantine/notifications';
import { motion } from 'framer-motion';
import { CSSProperties, useEffect, useState } from 'react';
import { Mail, Settings as SettingsIcon, X } from 'tabler-icons-react';
import { Settings, loadSettings } from '../../tools/settings';
import { loadSettings } from '../../tools/settings';
import { Settings } from '../../tools/types';
import SaveConfigComponent from '../Config/SaveConfig';
function SettingsMenu(props: any) {

View File

@@ -1,6 +1,6 @@
// src/context/state.js
import { createContext, ReactNode, useContext, useState } from 'react';
import { serviceItem } from '../components/AppShelf/AppShelf.d';
import { serviceItem } from './types';
type servicesContextType = {
services: serviceItem[];