refactor(pathing): use path alias to uniformize imports

This commit is contained in:
Marc 2024-02-19 00:38:17 -05:00
parent 0a75e566df
commit e2a5e593e9
Signed by: marc
GPG key ID: 048E042F22B5DC79
5 changed files with 13 additions and 10 deletions

View file

@ -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();

View file

@ -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;

View file

@ -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,

View file

@ -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",

View file

@ -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/**/*"]
} }