added sidebar
This commit is contained in:
45
src/App.js
45
src/App.js
@@ -1,23 +1,34 @@
|
||||
import './styles/tailwind.css'
|
||||
import logo from './assets/logo/logo.svg';
|
||||
import Sidebar from './sidebar/sidebar';
|
||||
|
||||
import { LayoutFilled, ProductFilled, CloudUploadOutlined } from "@ant-design/icons";
|
||||
import WidgetsContainer from './sidebar/widgetsContainer';
|
||||
|
||||
|
||||
function App() {
|
||||
|
||||
const tabs = [
|
||||
{
|
||||
name: "Widgets",
|
||||
icon: <LayoutFilled />,
|
||||
content: <WidgetsContainer />
|
||||
},
|
||||
{
|
||||
name: "Extensions",
|
||||
icon: <ProductFilled />,
|
||||
content: <></>
|
||||
},
|
||||
{
|
||||
name: "Uploads",
|
||||
icon: <CloudUploadOutlined />,
|
||||
content: <></>
|
||||
}
|
||||
]
|
||||
|
||||
return (
|
||||
<div className="tw-w-full tw-bg-black">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
<div className="tw-w-full tw-h-[100vh] tw-flex tw-bg-primaryBg">
|
||||
|
||||
<Sidebar tabs={tabs}/>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user