From 7ba7836b24378d29d665555f4e0a3fd2a3c89cf0 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:45:20 +0100 Subject: [PATCH] Cleanup: move components out --- src/components/card.tsx | 31 +++ src/components/section.tsx | 43 ++++ src/components/table.tsx | 368 +++++++++++++++++++++++++++++++ src/dialogs.tsx | 2 +- src/launcher.tsx | 431 +------------------------------------ tsconfig.json | 2 +- 6 files changed, 448 insertions(+), 429 deletions(-) create mode 100644 src/components/card.tsx create mode 100644 src/components/section.tsx create mode 100644 src/components/table.tsx diff --git a/src/components/card.tsx b/src/components/card.tsx new file mode 100644 index 0000000..8a44bd6 --- /dev/null +++ b/src/components/card.tsx @@ -0,0 +1,31 @@ +// Copyright (c) Nebari Development Team. +// Distributed under the terms of the Modified BSD License. +import { TranslationBundle } from '@jupyterlab/translation'; +import { classes, LabIcon } from '@jupyterlab/ui-components'; +import * as React from 'react'; +import { IItem } from '../types'; + +export function TypeCard(props: { + trans: TranslationBundle; + item: IItem; +}): React.ReactElement { + const { item } = props; + return ( +
{item.label}
+{item.label}
-