fix filter
This commit is contained in:
parent
9655e7da41
commit
448186c025
|
|
@ -22,9 +22,10 @@ const PageTitleComponent = () => {
|
||||||
return (
|
return (
|
||||||
<div className='PageTitle'>
|
<div className='PageTitle'>
|
||||||
{(Array.isArray(PageTitle) ? PageTitle : [])?.map((item,index)=>{
|
{(Array.isArray(PageTitle) ? PageTitle : [])?.map((item,index)=>{
|
||||||
|
const lastItem = PageTitle?.length - 1 === index
|
||||||
return (
|
return (
|
||||||
<div key={index} className='PageTitleItems' onClick={()=>handleNavigate(item?.path)}>
|
<div key={index} className={`PageTitleItems ${lastItem ? "PageTitleLastItem" : ""} `} onClick={()=>handleNavigate(item?.path)}>
|
||||||
{item?.name} /
|
{item?.name} {lastItem ? "" : "/"}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
|
|
||||||
|
|
@ -48,16 +48,18 @@
|
||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
border-radius: 10px;
|
border-radius: 6px;
|
||||||
padding: 10px;
|
padding: 6px 10px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background: var(--primary);
|
background: var(--primary);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 5px;
|
gap: 7px;
|
||||||
|
font-size: 14px;
|
||||||
svg {
|
svg {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,13 @@
|
||||||
.PageTitle{
|
.PageTitle{
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
margin-block: 10px;
|
||||||
.PageTitleItems{
|
.PageTitleItems{
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
color: #6A7287;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.PageTitleLastItem{
|
||||||
|
color: #202C4B !important;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user