mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-03 12:05:57 +01:00
Move types
This commit is contained in:
@@ -17,7 +17,7 @@ import { useForm } from '@mantine/hooks';
|
|||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Apps } from 'tabler-icons-react';
|
import { Apps } from 'tabler-icons-react';
|
||||||
import { ServiceTypes } from './AppShelf.d';
|
import { ServiceTypes } from '../../tools/types';
|
||||||
|
|
||||||
export default function AddItemShelfItem(props: any) {
|
export default function AddItemShelfItem(props: any) {
|
||||||
const { additem: addItem } = props;
|
const { additem: addItem } = props;
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import {
|
|||||||
} from '@mantine/core';
|
} from '@mantine/core';
|
||||||
import { showNotification } from '@mantine/notifications';
|
import { showNotification } from '@mantine/notifications';
|
||||||
import { AlertCircle, Cross, X } from 'tabler-icons-react';
|
import { AlertCircle, Cross, X } from 'tabler-icons-react';
|
||||||
import { serviceItem } from './AppShelf.d';
|
|
||||||
import AppShelfMenu from './AppShelfMenu';
|
import AppShelfMenu from './AppShelfMenu';
|
||||||
import AddItemShelfItem from './AddAppShelfItem';
|
import AddItemShelfItem from './AddAppShelfItem';
|
||||||
import { useServices } from '../../tools/state';
|
import { useServices } from '../../tools/state';
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ import {
|
|||||||
InfoCircle,
|
InfoCircle,
|
||||||
FileX,
|
FileX,
|
||||||
} from 'tabler-icons-react';
|
} 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) {
|
export default function SearchBar(props: any) {
|
||||||
const [opened, setOpened] = useState(false);
|
const [opened, setOpened] = useState(false);
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import { showNotification } from '@mantine/notifications';
|
|||||||
import { motion } from 'framer-motion';
|
import { motion } from 'framer-motion';
|
||||||
import { CSSProperties, useEffect, useState } from 'react';
|
import { CSSProperties, useEffect, useState } from 'react';
|
||||||
import { Mail, Settings as SettingsIcon, X } from 'tabler-icons-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';
|
import SaveConfigComponent from '../Config/SaveConfig';
|
||||||
|
|
||||||
function SettingsMenu(props: any) {
|
function SettingsMenu(props: any) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// src/context/state.js
|
// src/context/state.js
|
||||||
import { createContext, ReactNode, useContext, useState } from 'react';
|
import { createContext, ReactNode, useContext, useState } from 'react';
|
||||||
import { serviceItem } from '../components/AppShelf/AppShelf.d';
|
import { serviceItem } from './types';
|
||||||
|
|
||||||
type servicesContextType = {
|
type servicesContextType = {
|
||||||
services: serviceItem[];
|
services: serviceItem[];
|
||||||
|
|||||||
Reference in New Issue
Block a user