Skip to content

Commit 6c6703a

Browse files
authored
show playground link on mobile (#278)
1 parent aee75cd commit 6c6703a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/codePreview/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ export default function CodePreview({ algorithm }: { algorithm: Algorithm }) {
7373
onClose={() => setMobileMoreMenuOpen(false)}
7474
className={classes.mobileMenu}
7575
>
76+
<NextLink
77+
href={`/playground?algorithm=${algorithm.slug}&language=${selectedLanguague}`}
78+
passHref
79+
>
80+
<MenuItem>
81+
<PlayArrow />
82+
<Typography>{t("playgroundTryCode")}</Typography>
83+
</MenuItem>
84+
</NextLink>
7685
<MenuItem onClick={() => setFullScreen(true)}>
7786
<Fullscreen />
7887
<Typography>{t("fullscreen")}</Typography>

0 commit comments

Comments
 (0)