From b3db3d9efc8e074f865f7d5d96da64d48ed0dcc3 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 22 Dec 2021 16:34:54 -0600 Subject: [PATCH] app: move docs to sepate comonent The docs iframe is quite complex, so move it to a separate component to improve readability. --- src/app/App.tsx | 219 ++++++++++++++++++++++++------------------------ 1 file changed, 110 insertions(+), 109 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index e37b527b..4b21157d 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// Copyright (c) 2020 The Pybricks Authors +// Copyright (c) 2020-2021 The Pybricks Authors import { Classes } from '@blueprintjs/core'; import React, { useState } from 'react'; @@ -17,10 +17,113 @@ import { isMacOS } from '../utils/os'; import 'react-splitter-layout/lib/index.css'; import './app.scss'; +const Docs: React.FunctionComponent = (_props) => { + const dispatch = useDispatch(); + + return ( +