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 FeedsPanel from "@/components/FeedsPanel";
|
||||||
import NavigationBar from "./NavigationBar";
|
import NavigationBar from "@/components/NavigationBar";
|
||||||
import SettingsPanel from "./SettingsPanel";
|
import SettingsPanel from "@/components/SettingsPanel";
|
||||||
import useNavigation, { routes } from "./hooks/useNavigation";
|
import useNavigation, { routes } from "@/hooks/useNavigation";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const { location } = useNavigation();
|
const { location } = useNavigation();
|
||||||
|
|
|
@ -2,9 +2,9 @@ import Box from "@mui/material/Box";
|
||||||
import Card from "@mui/material/Card";
|
import Card from "@mui/material/Card";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import useRSSFeeds from "./hooks/useRSSFeeds";
|
import useRSSFeeds from "@/hooks/useRSSFeeds";
|
||||||
import useSettings from "./hooks/useSettings";
|
import useSettings from "@/hooks/useSettings";
|
||||||
import sortFeedItemsByDate from "./utils";
|
import sortFeedItemsByDate from "@/utils";
|
||||||
|
|
||||||
interface CardProps {
|
interface CardProps {
|
||||||
title: string;
|
title: string;
|
|
@ -3,7 +3,7 @@ import Button from "@mui/material/Button";
|
||||||
import Toolbar from "@mui/material/Toolbar";
|
import Toolbar from "@mui/material/Toolbar";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import useNavigation, { routes } from "./hooks/useNavigation";
|
import useNavigation, { routes } from "@/hooks/useNavigation";
|
||||||
|
|
||||||
const title = {
|
const title = {
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
|
@ -10,7 +10,7 @@ import { useState } from "react";
|
||||||
|
|
||||||
import { css } from "@emotion/react";
|
import { css } from "@emotion/react";
|
||||||
|
|
||||||
import useSettings from "./hooks/useSettings";
|
import useSettings from "@/hooks/useSettings";
|
||||||
|
|
||||||
const urlCard = {
|
const urlCard = {
|
||||||
margin: "5px",
|
margin: "5px",
|
|
@ -6,7 +6,10 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"rootDir": "."
|
"rootDir": ".",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./src/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*", "netlify/**/*"]
|
"include": ["src/**/*", "netlify/**/*"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue