mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 08:26:01 +00:00
current widget selector
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
import React from "react";
|
||||
import useFetch from "./useFetch";
|
||||
import "./index.css";
|
||||
import Screen from './Screen'
|
||||
|
||||
import Screen from "./Screen";
|
||||
import {CurrentWidgetProvider} from "./widgets/useCurrentWidget";
|
||||
|
||||
function App() {
|
||||
const resp = useFetch("http://localhost:3000", {});
|
||||
console.log("FETCH data", resp.data);
|
||||
return <Screen/>;
|
||||
return (
|
||||
<CurrentWidgetProvider>
|
||||
<Screen />
|
||||
</CurrentWidgetProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user