updated aside icons
This commit is contained in:
@@ -11,7 +11,7 @@ import { LuPanelRight } from "react-icons/lu";
|
|||||||
import { FcGoogle } from "react-icons/fc";
|
import { FcGoogle } from "react-icons/fc";
|
||||||
import { IoLogoApple } from "react-icons/io5";
|
import { IoLogoApple } from "react-icons/io5";
|
||||||
import { FcSalesPerformance } from "react-icons/fc";
|
import { FcSalesPerformance } from "react-icons/fc";
|
||||||
|
import { FaLongArrowAltRight } from "react-icons/fa";
|
||||||
|
|
||||||
export default function Icons({name, className}) {
|
export default function Icons({name, className}) {
|
||||||
return (
|
return (
|
||||||
@@ -48,6 +48,8 @@ export default function Icons({name, className}) {
|
|||||||
<IoLogoApple className={`text-base ${className}`} />
|
<IoLogoApple className={`text-base ${className}`} />
|
||||||
:name.toLowerCase() == 'sales' ?
|
:name.toLowerCase() == 'sales' ?
|
||||||
<FcSalesPerformance className={`text-base ${className}`} />
|
<FcSalesPerformance className={`text-base ${className}`} />
|
||||||
|
:name.toLowerCase() == 'arrow-right' ?
|
||||||
|
<FaLongArrowAltRight className={`text-base ${className}`} />
|
||||||
:
|
:
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default function AsideLinkWithSubLinks({name, icon, to, children, isOpen}
|
|||||||
<span className="flex gap-2 items-center">{icon && <Icons name={icon} />}{shrinkAside ? '' : name}</span>
|
<span className="flex gap-2 items-center">{icon && <Icons name={icon} />}{shrinkAside ? '' : name}</span>
|
||||||
<FaCaretDown className={`text-base ${(hideSubMenu) ? 'rotate-180' : 'rotate-0'}`} />
|
<FaCaretDown className={`text-base ${(hideSubMenu) ? 'rotate-180' : 'rotate-0'}`} />
|
||||||
</button>
|
</button>
|
||||||
<div className={`w-full ${(hideSubMenu) ? 'block' : 'hidden'}`}>
|
<div className={`w-full ${(hideSubMenu) ? 'opacity-100' : 'opacity-0'} transition-aall duration-500`}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -145,13 +145,13 @@ export default function DashboardAside() {
|
|||||||
|
|
||||||
const asideNavLinks = [
|
const asideNavLinks = [
|
||||||
{name:'Dashboard', status:1, icon: 'dashboard', to: RouteLinks.homePage},
|
{name:'Dashboard', status:1, icon: 'dashboard', to: RouteLinks.homePage},
|
||||||
{name:'Salary Loan', title:'Loan', status:1, icon: 'money', subLinks: [
|
{name:'Salary Loan', title:'Loan', status:1, icon: 'arrow-right', subLinks: [
|
||||||
{name: 'Selected Loans', status:1, icon: 'dot', to: RouteLinks.selectedLoanPage},
|
{name: 'Selected Loans', status:1, icon: 'dot', to: RouteLinks.selectedLoanPage},
|
||||||
{name: 'Applications', status:1, icon: 'dot', to: RouteLinks.applicationsLoanPage},
|
{name: 'Applications', status:1, icon: 'dot', to: RouteLinks.applicationsLoanPage},
|
||||||
{name: 'Approved Loans', status:1, icon: 'dot', to: RouteLinks.approvedLoansPage},
|
{name: 'Approved Loans', status:1, icon: 'dot', to: RouteLinks.approvedLoansPage},
|
||||||
{name: 'Disbursements', status:1, icon: 'dot', to: RouteLinks.disbursementsLoanPage},
|
{name: 'Disbursements', status:1, icon: 'dot', to: RouteLinks.disbursementsLoanPage},
|
||||||
{name: 'Payments', status:1, icon: 'dot', to: ''},
|
{name: 'Payments', status:1, icon: 'dot', to: ''},
|
||||||
{name: 'Configurations', status:1, icon: 'dot', subLinks: [
|
{name: 'Configurations', status:1, icon: 'arrow-right', subLinks: [
|
||||||
{name: 'Loan Offers', status:1, icon: 'dot', to: RouteLinks.loanOffersPage },
|
{name: 'Loan Offers', status:1, icon: 'dot', to: RouteLinks.loanOffersPage },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user