Skip to content

Commit

Permalink
levels
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 2, 2024
1 parent 2bc3878 commit 59f04e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/pages/homeLearning/Advanced.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { type FC } from "react"

import Level from "./Level"
import Levels from "./Levels"
import RRAdvancedImage from "../../images/rr_advanced.png"

export interface AdvancedProps {}

const Advanced: FC<AdvancedProps> = () => (
<Level
<Levels
banner={{
difficulty: "Advanced",
color: "White",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/homeLearning/Beginner.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { type FC } from "react"

import Level from "./Level"
import Levels from "./Levels"
import RRBeginnerImage from "../../images/rr_beginner.png"

export interface BeginnerProps {}

const Beginner: FC<BeginnerProps> = () => (
<Level
<Levels
banner={{
difficulty: "Beginner",
color: "White",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/homeLearning/Intermediate.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { type FC } from "react"

import Level from "./Level"
import Levels from "./Levels"
import RRIntermediateImage from "../../images/rr_intermediate.png"

export interface IntermediateProps {}

const Intermediate: FC<IntermediateProps> = () => (
<Level
<Levels
direction="row-reverse"
banner={{
difficulty: "Intermediate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { OpenInNew as OpenInNewIcon } from "@mui/icons-material"

import { Card, type CardProps } from "../../components"

export interface LevelProps extends Pick<Grid2Props, "direction"> {
export interface LevelsProps extends Pick<Grid2Props, "direction"> {
banner: {
difficulty: string
color: string
Expand All @@ -30,7 +30,7 @@ export interface LevelProps extends Pick<Grid2Props, "direction"> {
}
}

const Level: FC<LevelProps> = ({ direction, banner, cardProps, text }) => {
const Levels: FC<LevelsProps> = ({ direction, banner, cardProps, text }) => {
return (
<>
<pages.Section
Expand Down Expand Up @@ -86,4 +86,4 @@ const Level: FC<LevelProps> = ({ direction, banner, cardProps, text }) => {
)
}

export default Level
export default Levels

0 comments on commit 59f04e6

Please sign in to comment.