Skip to content

Commit

Permalink
refactor: Quick improvements and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickLarocque committed Sep 30, 2024
1 parent c8cbd6a commit 7ac9bfc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@
"tailwindcss": "3.3.3",
"tailwindcss-animate": "^1.0.7",
"typescript": "5.2.2"
},
"optionalDependencies": {
"@napi-rs/simple-git-linux-x64-gnu": "^0.1.9",
"@napi-rs/simple-git-linux-x64-musl": "^0.1.16"
}
}
6 changes: 4 additions & 2 deletions src/components/ContributeModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

import { useState } from "react";
import Link from "next/link";
import {
Expand Down Expand Up @@ -46,7 +48,7 @@ export function ContributeModal({
</DialogHeader>
<div className="py-4">
<h4 className="text-sm font-medium mb-2">
Contribution checklist:
You might want to
</h4>
<ul className="list-disc pl-5 space-y-1 text-sm">
<li>
Expand All @@ -57,7 +59,7 @@ export function ContributeModal({
rel="noopener noreferrer"
onClick={handleClose}
>
Familiarize yourself with Git basics
Familiarize yourself with the basics of GitHub
</a>
</li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const DialogContent = React.forwardRef<
{...props}
>
{children}
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
<X className="h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
Expand Down
1 change: 0 additions & 1 deletion theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const SITE_ROOT = process.env.NEXT_PUBLIC_SITE_ROOT;
const config: DocsThemeConfig = {
docsRepositoryBase: "https://github.com/systemphil/sphil/tree/dev", // root for every edit link
editLink: {
text: "Edit this page on GitHub ✏️",
component: ({ filePath }) => (
<ContributeModal
docsRepositoryBase="https://github.com/systemphil/sphil/tree/dev"
Expand Down

0 comments on commit 7ac9bfc

Please sign in to comment.