Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 78 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.2",
"private": true,
"dependencies": {
"@craco/craco": "^6.3.0",
"@craco/craco": "^6.4.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.2.0",
Expand Down
32 changes: 15 additions & 17 deletions src/components/SideBar/index.jsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
import { BsPlus, BsFillLightningFill, BsGearFill } from 'react-icons/bs';
import { FaFire, FaPoo } from 'react-icons/fa';
import { BsPlus, BsFillLightningFill, BsGearFill } from "react-icons/bs";
import { FaFire, FaPoo } from "react-icons/fa";

const SideBar = () => {
return (
<div className="fixed top-0 left-0 h-screen w-16 flex flex-col
bg-white dark:bg-gray-900 shadow-lg">

<SideBarIcon icon={<FaFire size="28" />} />
<Divider />
<SideBarIcon icon={<BsPlus size="32" />} />
<SideBarIcon icon={<BsFillLightningFill size="20" />} />
<SideBarIcon icon={<FaPoo size="20" />} />
<Divider />
<SideBarIcon icon={<BsGearFill size="22" />} />
<div
className="fixed top-0 left-0 h-screen w-16 flex flex-col
bg-white dark:bg-gray-900 shadow-lg"
>
<SideBarIcon icon={<FaFire size="28" />} />
<Divider />
<SideBarIcon icon={<BsPlus size="32" />} />
<SideBarIcon icon={<BsFillLightningFill size="20" />} />
<SideBarIcon icon={<FaPoo size="20" />} />
<Divider />
<SideBarIcon icon={<BsGearFill size="22" />} />
</div>
);
};

const SideBarIcon = ({ icon, text = 'tooltip 💡' }) => (
const SideBarIcon = ({ icon, text = "tooltip 💡" }) => (
<div className="sidebar-icon group">
{icon}
<span class="sidebar-tooltip group-hover:scale-100">
{text}
</span>
<span className="sidebar-tooltip group-hover:scale-100">{text}</span>
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is the major change, the rest changes are versoning and of single quotes changed to double quotes

</div>
);


const Divider = () => <hr className="sidebar-hr" />;

export default SideBar;