Skip to content

Commit

Permalink
fix deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 27, 2024
1 parent 34ac76d commit f93e971
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/pages-router/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import "../styles/global.css";
import { Inter } from "next/font/google";
import Link from "next/link";
import { Card, Cards, LandingPage, Layout, type CardProps } from "@repo/shared/dist/server";
import { ThemeController, PageNavigatorCard, Header } from "@repo/shared";
import { ThemeController, PageNavigatorCard, Header, ScopedThemes } from "@repo/shared";
import { ColorSwitch } from "nextjs-themes/color-switch";
import { ScopedThemes } from "@repo/shared";
import { MouseTrail } from "react-webgl-trails";

const inter = Inter({ subsets: ["latin"] });
Expand Down
3 changes: 2 additions & 1 deletion examples/tailwind/src/app/_components/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ interface CardProps {
text: string;
}

/** Card */
export default function Card({ href, title, text }: CardProps) {
return (
<a
Expand All @@ -12,7 +13,7 @@ export default function Card({ href, title, text }: CardProps) {
target="_blank"
rel="noopener noreferrer">
<h2 className={"mb-3 text-2xl font-semibold"}>
{title + " "}
{`${title} `}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand Down
1 change: 1 addition & 0 deletions examples/tailwind/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const metadata: Metadata = {
description: "Generated by Mayank <https://github.com/mayank1513>",
};

/** Layout */
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
Expand Down
1 change: 1 addition & 0 deletions examples/tailwind/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Image from "next/image";
import { ColorSwitch } from "nextjs-themes";
import Card from "./_components/card";

/** Home */
export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
Expand Down

0 comments on commit f93e971

Please sign in to comment.