Skip to content

Commit 45255e2

Browse files
committed
Added arrow-small-up icon and loaded accordingly
1 parent 249ec51 commit 45255e2

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

src/assets/images/arrow-small-up.svg

Lines changed: 21 additions & 0 deletions
Loading

src/components/TopNav/MobileSubNav.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33
import cn from 'classnames'
44
import IconArrowSmalldown from '../../assets/images/arrow-small-down.svg'
5+
import IconArrowSmallup from '../../assets/images/arrow-small-up.svg'
56
import styles from './MobileSubNav.module.scss'
67

78
const MobileSubNav = ({ open, menu, activeChildId, onClick, createHandleClickItem }) => (
@@ -11,7 +12,8 @@ const MobileSubNav = ({ open, menu, activeChildId, onClick, createHandleClickIte
1112
<div className={styles.mobileSubNavMask} />
1213
<button className={styles.mobileSubNavHeader} onClick={onClick}>
1314
<span>{menu.title}</span>
14-
<IconArrowSmalldown />
15+
{open && <IconArrowSmallup />}
16+
{!open && <IconArrowSmalldown />}
1517
</button>
1618
{open && (
1719
<div className={styles.mobileSubNavContent}>

0 commit comments

Comments
 (0)