feat: use drawer instead of modal for sql query

This commit is contained in:
steven
2023-03-28 16:43:15 +08:00
parent 2fb70e11ff
commit 65f2100f50
8 changed files with 503 additions and 88 deletions

View File

@ -3,6 +3,7 @@ import Head from "next/head";
import dynamic from "next/dynamic";
import React, { useEffect } from "react";
import { ResponsiveWidth, useLayoutStore } from "@/store";
import QueryDrawer from "@/components/QueryDrawer";
// Use dynamic import to avoid page hydrated.
// reference: https://github.com/pmndrs/zustand/issues/1145#issuecomment-1316431268
@ -51,6 +52,7 @@ const ChatPage: NextPage = () => {
/>
<ChatView />
<ConnectionSidebar />
<QueryDrawer />
</main>
</div>
);