Skip to content

Commit

Permalink
fix: landing page edit link
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarv committed Sep 20, 2024
1 parent d370bb2 commit c4dfe61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/components/EditPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ export default function EditPage({ pathname }) {
?.replace(/^\.\//, "/") ?? ""
: pathname === "/en/team"
? "/pages/en/(pages)/team/index.mdx"
: `/pages${pathname}.(index).mdx`;
: pathname === "/en"
? "/pages/en/index.mdx"
: `/pages${pathname}.(index).mdx`;
return (
<a
href={`https://github.com/lazarv/react-server/edit/main/docs/src${filename}`}
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 text-xs text-gray-600 hover:!text-gray-500 dark:!text-gray-500 dark:hover:!text-gray-400 hover:no-underline absolute right-0 top-0"
className="flex items-center gap-2 text-xs text-gray-600 hover:!text-gray-500 dark:!text-gray-500 dark:hover:!text-gray-400 hover:no-underline absolute right-0 top-0 z-50"
>
Edit this page
</a>
Expand Down

0 comments on commit c4dfe61

Please sign in to comment.