Skip to content

Commit

Permalink
swizzle EditThisPage component
Browse files Browse the repository at this point in the history
  • Loading branch information
Roma36 committed Sep 20, 2023
1 parent bf67d79 commit aa29c6e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/theme/EditThisPage/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from "react";
import Translate from "@docusaurus/Translate";
import { ThemeClassNames } from "@docusaurus/theme-common";
import IconEdit from "@theme/Icon/Edit";
export default function EditThisPage({ editUrl }) {
return (
<a
href={editUrl}
target="_blank"
rel="noreferrer noopener"
className={ThemeClassNames.common.editThisPage}
>
<IconEdit className="inline-block" />
<Translate
id="theme.common.editThisPage"
description="The link label to edit the current page"
>
Edit this page
</Translate>
</a>
);
}

0 comments on commit aa29c6e

Please sign in to comment.