Skip to content

Commit

Permalink
show playground link on mobile (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny authored Dec 13, 2023
1 parent aee75cd commit 6c6703a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/codePreview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ export default function CodePreview({ algorithm }: { algorithm: Algorithm }) {
onClose={() => setMobileMoreMenuOpen(false)}
className={classes.mobileMenu}
>
<NextLink
href={`/playground?algorithm=${algorithm.slug}&language=${selectedLanguague}`}
passHref
>
<MenuItem>
<PlayArrow />
<Typography>{t("playgroundTryCode")}</Typography>
</MenuItem>
</NextLink>
<MenuItem onClick={() => setFullScreen(true)}>
<Fullscreen />
<Typography>{t("fullscreen")}</Typography>
Expand Down

1 comment on commit 6c6703a

@vercel
Copy link

@vercel vercel bot commented on 6c6703a Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

website – ./

website-git-main-thealgorithms.vercel.app
website-thealgorithms.vercel.app
the-algorithms.com

Please sign in to comment.