Skip to content

Commit

Permalink
chore: 🔨 别名
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuba-Ahhh committed Aug 25, 2024
1 parent 21977bf commit 5230305
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/app/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from "next-view-transitions";
import { Badge } from "../../components/ui/badge";
import { Badge } from "@/components/ui/badge";

export default function Footer() {
const links = [
Expand Down
2 changes: 1 addition & 1 deletion src/components/app/ThemeToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import React from "react";
import { useState, useEffect } from "react";
import { useThemeType } from "../../hooks";
import { useThemeType } from "@/hooks";

const MoonIcon = () => (
<svg viewBox="0 0 1024 1024" className="w-5 h-5">
Expand Down
8 changes: 4 additions & 4 deletions src/components/blog/id/Comments.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
"use client";
import React, { useState, useCallback, useMemo } from "react";
import { Input } from "../../../components/ui/input";
import { Textarea } from "../../../components/ui/textarea";
import { Button } from "../../../components/ui/button";
import { Input } from "@/components/ui/input";
import { Textarea } from "@/components/ui/textarea";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardHeader,
CardTitle,
CardDescription,
CardFooter,
} from "../../../components/ui/card";
} from "@/components/ui/card";

interface Comment {
id: number;
Expand Down
2 changes: 1 addition & 1 deletion src/components/blog/id/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, { useState, useCallback, useMemo } from "react";
import Image from "next/image";
import { throttle } from "lodash-es";
import { useThemeType } from "../../../hooks";
import { useThemeType } from "@/hooks";

interface CopyButtonProps {
text: string;
Expand Down
3 changes: 0 additions & 3 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
export * from "./ui";
export * from "./Comments";
export * from "./ui";
export * from "./Header";
export * from "./app/Layout";
export * from "./blog/id/ReadingProgress";
2 changes: 1 addition & 1 deletion src/components/page/TechStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { motion } from "framer-motion";
import Link from "next/link";
import Image from "next/image";

import type { BlogPost } from "../../data/blogPosts";
import type { BlogPost } from "@/data/blogPosts";

interface LatestPostsProps {
posts: BlogPost[];
Expand Down

0 comments on commit 5230305

Please sign in to comment.