🎨 styles: fix dot in icon filter from header

:%s
This commit is contained in:
lytrankieio123
2021-10-06 18:16:25 +07:00
parent 721ae9dedc
commit 97e3d10bfd
3 changed files with 2 additions and 12 deletions

View File

@@ -50,10 +50,6 @@
width: 1.2rem; width: 1.2rem;
height: 1.2rem; height: 1.2rem;
border-radius: 1.2rem; border-radius: 1.2rem;
@apply hidden;
&.isShow {
@apply block;
}
} }
@screen md { @screen md {
display: none; display: none;

View File

@@ -27,7 +27,6 @@ interface Props {
children?: any children?: any
isFull?: boolean isFull?: boolean
isStickyHeader?: boolean isStickyHeader?: boolean
visibleFilter?: boolean
openModalLogin: () => void openModalLogin: () => void
openModalRegister: () => void openModalRegister: () => void
openModalInfo: () => void openModalInfo: () => void
@@ -38,7 +37,6 @@ const HeaderMenu = memo(
({ ({
isFull, isFull,
isStickyHeader, isStickyHeader,
visibleFilter,
openModalLogin, openModalLogin,
openModalRegister, openModalRegister,
openModalInfo, openModalInfo,
@@ -105,12 +103,7 @@ const HeaderMenu = memo(
{FILTER_PAGE.includes(router.pathname) && ( {FILTER_PAGE.includes(router.pathname) && (
<button className={s.iconFilter} onClick={toggleFilter}> <button className={s.iconFilter} onClick={toggleFilter}>
<IconFilter /> <IconFilter />
<div <div className={s.dot}></div>
className={classNames({
[s.dot]: true,
[s.isShow]: visibleFilter,
})}
></div>
</button> </button>
)} )}
<button <button

View File

@@ -68,4 +68,5 @@ const HeaderSubMenuMobile = memo(({ }: Props) => {
) )
}) })
HeaderSubMenuMobile.displayName = 'HeaderSubMenuMobile'
export default HeaderSubMenuMobile export default HeaderSubMenuMobile