Skip to content

Commit

Permalink
Prueba inicial botones anterior y posterior
Browse files Browse the repository at this point in the history
  • Loading branch information
asanzo committed Nov 22, 2023
1 parent a484de2 commit c1b5847
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/ChallengeView.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { Typography, useMediaQuery } from "@mui/material";
import { Stack, Typography, useMediaQuery } from "@mui/material";
import { Link, useParams, useSearchParams } from "react-router-dom";
import { Challenge, getChallengeWithName, getPathToChallenge, PathToChallenge } from "../staticData/challenges";
import { EmberView } from "./emberView/EmberView";
import HomeIcon from '@mui/icons-material/Home';
import { Header } from "./header/Header";
import { useTranslation } from "react-i18next";
import { PBreadcrumbs } from "./PBreadcrumbs";
import SkipNextIcon from '@mui/icons-material/SkipNext';
import SkipPreviousIcon from '@mui/icons-material/SkipPrevious';
import { IconButtonTooltip } from "./creator/Editor/SceneEdition/IconButtonTooltip";

const ChallengeBreadcrumb = (path: PathToChallenge) => {

Expand All @@ -16,7 +19,7 @@ const ChallengeBreadcrumb = (path: PathToChallenge) => {
const shouldShowGroup = path.book.id === 1 && !isVerySmallScreen
const shouldShowChapter = !isSmallScreen

return <>
return <Stack direction="row" alignItems="center">
<PBreadcrumbs>

<Link to="/">
Expand All @@ -39,7 +42,9 @@ const ChallengeBreadcrumb = (path: PathToChallenge) => {
<Typography>{t(`${path.challenge.id}.title`, { ns: "challenges" })}</Typography>

</PBreadcrumbs>
</>
<IconButtonTooltip onClick={() => {}} icon={<SkipPreviousIcon />} tooltip={"Desafío anterior"} />
<IconButtonTooltip onClick={() => {}} icon={<SkipNextIcon />} tooltip={"Desafío siguiente"} />
</Stack>
}


Expand Down

0 comments on commit c1b5847

Please sign in to comment.