Skip to content

Commit

Permalink
chore: migrate to @datalayer/ui
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles committed Sep 15, 2024
1 parent 1e3dffc commit 58262a3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
9 changes: 7 additions & 2 deletions src/DatalayerApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
import { useState, useEffect } from 'react';
import { createRoot } from 'react-dom/client';
import { MemoryRouter } from 'react-router-dom';
import { RunIndex, LoginFormCLI, BenchmarksExample, KernelsExample } from '@datalayer/run';
import { RunIndex, LoginFormCLI, BenchmarksExample, KernelsExample } from '@datalayer/ui';

import '../style/index.css';

type ViewType = 'benchmarks' | 'kernels' | 'web' | 'login' | 'root';
type ViewType =
'benchmarks'
| 'kernels'
| 'web'
| 'login'
| 'root';

export const DatalayerApp = (): JSX.Element => {
const pathname = window.location.pathname;
Expand Down
18 changes: 9 additions & 9 deletions src/jupyterlab/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
activatorPlugin,
datalayerCorePlugin,
jupyterIAMPlugin,
jupyterKernelsPlugin,
} from '@datalayer/run';
activatorPlugin,
datalayerCorePlugin,
jupyterIAMPlugin,
jupyterKernelsPlugin,
} from '@datalayer/ui';

export default [
activatorPlugin,
datalayerCorePlugin,
jupyterIAMPlugin,
...jupyterKernelsPlugin,
activatorPlugin,
datalayerCorePlugin,
jupyterIAMPlugin,
...jupyterKernelsPlugin,
];
6 changes: 3 additions & 3 deletions style/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@import url('~@datalayer/run/style/core/index.css');
@import url('~@datalayer/run/style/iam/index.css');
@import url('~@datalayer/run/style/kernels/index.css');
@import url('~@datalayer/ui/style/core/index.css');
@import url('~@datalayer/ui/style/iam/index.css');
@import url('~@datalayer/ui/style/kernels/index.css');
2 changes: 1 addition & 1 deletion style/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@datalayer/run/style/core/index.css';
import '@datalayer/ui/style/core/index.css';

0 comments on commit 58262a3

Please sign in to comment.