From 6718f5091cd24bfbb7d8fdb4d4ab4cbd19ba4a12 Mon Sep 17 00:00:00 2001 From: Lou Huang Date: Tue, 3 Dec 2024 09:45:59 -0500 Subject: [PATCH 1/2] refactor(Layout): remove unused variable --- lib/ui/partials/Layout.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ui/partials/Layout.js b/lib/ui/partials/Layout.js index ec70d84a..54e4258f 100644 --- a/lib/ui/partials/Layout.js +++ b/lib/ui/partials/Layout.js @@ -142,9 +142,6 @@ class Layout extends Component { const controls = { toggleModal: this.toggleMobileMenu }; - const conditions = { - hasMobileMenu - }; return ( Date: Tue, 3 Dec 2024 09:46:15 -0500 Subject: [PATCH 2/2] refactor(404): add title to iframe + refactor component - resolve a warning that iframe is missing title attribute - remove deprecated scrolling and frameborder attributes, use css instead - refactor component to react function component - keep the background music on this page even though it will never play unless you knew it was there and specifically allowed this site to play bg music --- src/pages/404.js | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/pages/404.js b/src/pages/404.js index db76061f..9ffde8e0 100644 --- a/src/pages/404.js +++ b/src/pages/404.js @@ -1,24 +1,27 @@ -import React, { Component, Fragment } from "react"; +import React from "react"; +import styled from "styled-components"; import { Helmet, Layout } from "ui/partials"; -export default class ErrorPage extends Component { - constructor(props) { - super(props); - this.state = {}; - } +const Iframe = styled.iframe` + overflow: hidden; + border: 0; +`; - render() { - return ( - - - -

You'd think there would be something more interesting here.

- -
-
- ); - } +export default function ErrorPage(props) { + return ( + <> + + +

You'd think there would be something more interesting here.

+