Skip to content

Commit

Permalink
refactor: autofix issues in 2 files
Browse files Browse the repository at this point in the history
Resolved issues in the following files with DeepSource Autofix:
1. examples/tailwind/app/_components/card.tsx
2. examples/tailwind/app/page.tsx
  • Loading branch information
deepsource-autofix[bot] committed Jun 9, 2024
1 parent ea3a35e commit 3e08656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/tailwind/app/_components/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export default function Card({ href, title, text }: CardProps) {
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
target="_blank"
rel="noopener noreferrer">
<h2 className={`mb-3 text-2xl font-semibold`}>
<h2 className={"mb-3 text-2xl font-semibold"}>
{title + " "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>{text}</p>
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>{text}</p>
</a>
);
}
4 changes: 2 additions & 2 deletions examples/tailwind/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export default function Home() {
<StarMe
gitHubUrl="https://github.com/react18-tools/nextjs-darkmode"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30">
<h2 className={`mb-3 text-2xl font-semibold`}>
<h2 className={"mb-3 text-2xl font-semibold"}>
Star Me{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
Explore and star official <code>nextjs-darkmode</code> repo.
</p>
</StarMe>
Expand Down

0 comments on commit 3e08656

Please sign in to comment.