Skip to content

Commit

Permalink
[update] dynamic import export modal
Browse files Browse the repository at this point in the history
  • Loading branch information
findyourmagic committed Jul 16, 2022
1 parent 5c834a0 commit 3f490f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/export_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Modal, Notification } from '@arco-design/web-react';
* @returns Modal component
*/

export function ExportModal({ command, setCommand }) {
export default function ExportModal({ command, setCommand }) {
const copy = async () => {
try {
await window.navigator.clipboard.writeText(command);
Expand Down
6 changes: 5 additions & 1 deletion pages/graphs/detail.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import Head from 'next/head';
import dynamic from 'next/dynamic';
import { useState, useRef, useMemo } from 'react';
import { Drawer } from '@arco-design/web-react';
import TableForm from '../../components/table_form';
import LinkPath from '../../components/link_path';
import LinkModal from '../../components/link_modal';
import { ExportModal } from '../../components/export_modal';
import Nav from '../../components/nav';
import Table from '../../components/table';
import useGraphState from '../../hooks/use-graph-state';

const ExportModal = dynamic(() => import('../../components/export_modal'), {
ssr: false,
});

export default function Home() {
const {
tableDict,
Expand Down

0 comments on commit 3f490f8

Please sign in to comment.