mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-01 11:06:02 +01:00
Move types
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user