diff --git a/src/App.tsx b/src/App.tsx index e4299dc7..5a836898 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,6 +4,7 @@ import Error404 from './pages/Error404'; import Exercise1 from './pages/Exercise1'; import Home from './pages/Home'; import Lesson1 from './pages/Lesson1'; +import Lesson10 from './pages/Lesson10'; import Lesson2_1 from './pages/Lesson2_1'; import Lesson2_2 from './pages/Lesson2_2'; import Lesson3 from './pages/Lesson3'; @@ -26,6 +27,7 @@ function App(): JSX.Element { } /> } /> } /> + } /> } /> diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 26e21e23..034a842f 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -91,6 +91,10 @@ export default function Sidebar(props: sidebarProps): JSX.Element { name: '8. References vs pointers', link: PageURLs.LESSON_8, }, + { + name: '10. Dynamic Memory Allocation', + link: PageURLs.LESSON_10, + }, ]; const exerciseList = [ { diff --git a/src/components/Terminal.tsx b/src/components/Terminal.tsx index 222502b3..e2eef191 100644 --- a/src/components/Terminal.tsx +++ b/src/components/Terminal.tsx @@ -1,10 +1,10 @@ +import { useState } from 'react'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import { FaRegCopy } from 'react-icons/fa'; import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'; import cpp from 'react-syntax-highlighter/dist/esm/languages/hljs/cpp'; import atomOneLightCustom from '../styles/Terminal/atom-one-light-custom'; import '../styles/Terminal/Terminal.scss'; -import { useState } from 'react'; export interface TerminalProps { code: string; @@ -24,9 +24,14 @@ export default function Terminal(props: TerminalProps): JSX.Element { return (
-
-

Copied to Clipboard

-
+ {alert ? ( +
+

Copied to Clipboard

+
+ ) : ( + <> + )} +
{

Parcel Pointers

- Lorem ipsum dolor sit amet, consecteur adipiscing elit, sed do - eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut - enim ad minim vernian, quis nostrud exercitation ullamco laboris - nisi ut aliquip ex ea commodo consequat. + Welcome to Parcel Pointers! This learning lab is designed to + help you learn everything about pointers and how they are used + by following our robot Pipi through a warehouse. By the end of + the learning lab, hopefully you should know how and where to use + pointers in your own projects!