Skip to content

Commit

Permalink
Merge pull request #339 from bavichugo/victor/updating-AlgoScreen-to-…
Browse files Browse the repository at this point in the history
…functional-component

Updating AlgoScreen from class component to functional component
  • Loading branch information
luciankt authored Sep 3, 2024
2 parents 576a645 + 23435b6 commit 205b15a
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 197 deletions.
24 changes: 24 additions & 0 deletions src/components/AlgorithmNotFound404.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Footer from './Footer';
import Header from './Header';
import { Link } from 'react-router-dom';
import React from 'react';

const AlgorithmNotFound404 = () => {
return (
<div className="container">
<Header />
<div className="content">
<div className="four-o-four">
<h1>404!</h1>
<h3>
Algorithm not found! Click <Link to="/">here</Link> to return to the home
screen and choose another algorithm.
</h3>
</div>
</div>
<Footer />
</div>
);
};

export default AlgorithmNotFound404;
2 changes: 1 addition & 1 deletion src/modals/BigOModals.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function unblurAll() {
const Modals = page => {
return timeComplexities[page] ? (
<div>
<div class="button-container">
<div className="button-container">
<button onClick={unblurAll}>Reveal All Big-O</button>
</div>
{renderRows(timeComplexities[page])}
Expand Down
Loading

0 comments on commit 205b15a

Please sign in to comment.