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