first commit
initialized project updated theme addaptive svg icons defined project structure
This commit is contained in:
9
app/src/components/layout/sidebarLeft/Assets.tsx
Normal file
9
app/src/components/layout/sidebarLeft/Assets.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
const Assets: React.FC = () => {
|
||||
return (
|
||||
<div>Assets</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Assets;
|
||||
11
app/src/components/layout/sidebarLeft/Header.tsx
Normal file
11
app/src/components/layout/sidebarLeft/Header.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
|
||||
const Header: React.FC = () => {
|
||||
return (
|
||||
<div className="header-container">
|
||||
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Header;
|
||||
9
app/src/components/layout/sidebarLeft/Outline.tsx
Normal file
9
app/src/components/layout/sidebarLeft/Outline.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
const Outline: React.FC = () => {
|
||||
return (
|
||||
<div>Outline</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Outline;
|
||||
24
app/src/components/layout/sidebarLeft/SideBarLeft.tsx
Normal file
24
app/src/components/layout/sidebarLeft/SideBarLeft.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import React, { useState } from "react";
|
||||
import ToggleHeader from "../../ui/inputs/ToggleHeader";
|
||||
import Search from "../../ui/inputs/Search";
|
||||
|
||||
const SideBarLeft: React.FC = () => {
|
||||
const [activeOption, setActiveOption] = useState("Option 1");
|
||||
|
||||
const handleToggleClick = (option: string) => {
|
||||
setActiveOption(option); // Update the active option
|
||||
};
|
||||
return (
|
||||
<>
|
||||
<div>SideBarLeft</div>
|
||||
<ToggleHeader
|
||||
options={["Outline", "Assets"]}
|
||||
activeOption={activeOption}
|
||||
handleClick={handleToggleClick}
|
||||
/>
|
||||
<Search onChange={(value) => console.log(value)} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default SideBarLeft;
|
||||
9
app/src/components/layout/sidebarRight/SideBarRight.tsx
Normal file
9
app/src/components/layout/sidebarRight/SideBarRight.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
|
||||
const SideBarRight: React.FC = () => {
|
||||
return (
|
||||
<div>SideBarRight</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SideBarRight;
|
||||
Reference in New Issue
Block a user