Skip to content

Commit

Permalink
add example for multi page editors
Browse files Browse the repository at this point in the history
  • Loading branch information
Darginec05 committed Jul 18, 2024
1 parent 7b14d17 commit 25e9088
Show file tree
Hide file tree
Showing 8 changed files with 561 additions and 231 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ExternalLinkIcon, StarIcon } from 'lucide-react';

type Props = {
example: string;
example?: string;
directLink?: string;
};

const CheckSourceCode = ({ example }: Props) => {
const CheckSourceCode = ({ example, directLink }: Props) => {
return (
<div className="fixed md:top-2 md:right-2 top-[14.5px] right-[18px] flex z-50">
<button
Expand All @@ -19,7 +20,8 @@ const CheckSourceCode = ({ example }: Props) => {
<button
onClick={() =>
window.open(
`https://github.com/Darginec05/Yoopta-Editor/blob/master/web/next-example/src/components/examples/${example}/index.tsx`,
directLink ||
`https://github.com/Darginec05/Yoopta-Editor/blob/master/web/next-example/src/components/examples/${example}/index.tsx`,
'_blank',
)
}
Expand Down
Loading

0 comments on commit 25e9088

Please sign in to comment.