refactor(pathing): use path alias to uniformize imports
This commit is contained in:
parent
0a75e566df
commit
e2a5e593e9
5 changed files with 13 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
import FeedsPanel from "./FeedsPanel";
|
||||
import NavigationBar from "./NavigationBar";
|
||||
import SettingsPanel from "./SettingsPanel";
|
||||
import useNavigation, { routes } from "./hooks/useNavigation";
|
||||
import FeedsPanel from "@/components/FeedsPanel";
|
||||
import NavigationBar from "@/components/NavigationBar";
|
||||
import SettingsPanel from "@/components/SettingsPanel";
|
||||
import useNavigation, { routes } from "@/hooks/useNavigation";
|
||||
|
||||
export default function App() {
|
||||
const { location } = useNavigation();
|
||||
|
|
|
@ -2,9 +2,9 @@ import Box from "@mui/material/Box";
|
|||
import Card from "@mui/material/Card";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import useRSSFeeds from "./hooks/useRSSFeeds";
|
||||
import useSettings from "./hooks/useSettings";
|
||||
import sortFeedItemsByDate from "./utils";
|
||||
import useRSSFeeds from "@/hooks/useRSSFeeds";
|
||||
import useSettings from "@/hooks/useSettings";
|
||||
import sortFeedItemsByDate from "@/utils";
|
||||
|
||||
interface CardProps {
|
||||
title: string;
|
|
@ -3,7 +3,7 @@ import Button from "@mui/material/Button";
|
|||
import Toolbar from "@mui/material/Toolbar";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import useNavigation, { routes } from "./hooks/useNavigation";
|
||||
import useNavigation, { routes } from "@/hooks/useNavigation";
|
||||
|
||||
const title = {
|
||||
flexGrow: 1,
|
|
@ -10,7 +10,7 @@ import { useState } from "react";
|
|||
|
||||
import { css } from "@emotion/react";
|
||||
|
||||
import useSettings from "./hooks/useSettings";
|
||||
import useSettings from "@/hooks/useSettings";
|
||||
|
||||
const urlCard = {
|
||||
margin: "5px",
|
|
@ -6,7 +6,10 @@
|
|||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"rootDir": "."
|
||||
"rootDir": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src/**/*", "netlify/**/*"]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue