Skip to content

Commit

Permalink
refactor: import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
symant233 committed Sep 25, 2024
1 parent 3a8a4da commit f8cf9f2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/client/components/AppInput.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Icon from '@mdi/react';
import { Icon } from '@mdi/react';
import { mdiLink } from '@mdi/js';
import { useRef } from 'react';
import urlValidator from '../utils/urlValidator';
import getHostname from '../utils/getHostname';
import useDataStore from '../hooks/useDataStore';
import urlValidator from '@client/utils/urlValidator';
import getHostname from '@client/utils/getHostname';
import useDataStore from '@client/hooks/useDataStore';

export default function AppInput() {
const inputRef = useRef<HTMLInputElement>(null);
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/Frame.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { memo } from 'react';
import Icon from '@mdi/react';
import { Icon } from '@mdi/react';
import { mdiMinus } from '@mdi/js';
import { CloseButton } from './common/IconButtons';
import DevLabel from './common/DevLabel';
Expand Down
8 changes: 4 additions & 4 deletions src/client/components/TrayContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
HomeButton,
RefreshButton,
} from './common/IconButtons';
import manifestHelper from '../utils/manifestHelper';
import useDataStore from '../hooks/useDataStore';
import manifestHelper from '@client/utils/manifestHelper';
import useDataStore from '@client/hooks/useDataStore';
import DevLabel from './common/DevLabel';
import { convertImageToDataURL } from '../utils/imageConverter';
import type { IData } from '../types';
import { convertImageToDataURL } from '@client/utils/imageConverter';
import type { IData } from '@client/types';

type Props = {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/common/IconButtons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Icon from '@mdi/react';
import { Icon } from '@mdi/react';
import {
mdiArrowLeft,
mdiConsoleLine,
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/common/LazyImage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react';
import { appIconBase64 } from '../../constant';
import { appIconBase64 } from '@client/constant';

type Props = {
src: string;
Expand Down
2 changes: 1 addition & 1 deletion src/client/hooks/useDataStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { create } from 'zustand';
import { persist, createJSONStorage } from 'zustand/middleware';
import type { IData } from '../types';
import type { IData } from '@client/types';

interface State {
recent: IData[];
Expand Down
4 changes: 2 additions & 2 deletions src/client/utils/manifestHelper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetchJsonData } from '../services/api';
import { IData } from '../types';
import { fetchJsonData } from '@client/services/api';
import { IData } from '@client/types';
import getHostname from './getHostname';

export type IManifest = {
Expand Down

0 comments on commit f8cf9f2

Please sign in to comment.