Skip to content

Commit

Permalink
[#1343] Save button doesn't work for adding a… (#1347)
Browse files Browse the repository at this point in the history
…chatplugin source in the ui

closes #1343
  • Loading branch information
bitboxer authored Mar 23, 2021
1 parent b75f4de commit 49f150b
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions frontend/ui/src/components/TopBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,65 +55,65 @@ const TopBar = (props: TopBarProps & ConnectedProps<typeof connector> & RouteCom
</div>
<div className={styles.menuArea}>
<div className={styles.menuItem}>
<ListenOutsideClick onClose={hideFaqDropdown}>
<div className={styles.help} onClick={faqClickHandler}>
?
</div>
</ListenOutsideClick>
<div className={styles.help} onClick={faqClickHandler}>
?
</div>

{isFaqDropdownOn && (
<div className={styles.dropdown}>
<a href="mailto:support@airy.co" className={styles.dropdownLine}>
<span className={styles.dropdownIcon}>
<ShortcutIcon />
</span>
<span>Contact us</span>
</a>
<a
href="https://airy.co/faq"
target="_blank"
rel="noopener noreferrer"
className={styles.dropdownLine}>
<span className={styles.dropdownIcon}>
<ShortcutIcon />
</span>
<span>FAQ</span>
</a>
</div>
<ListenOutsideClick onClose={hideFaqDropdown}>
<div className={styles.dropdown}>
<a href="mailto:support@airy.co" className={styles.dropdownLine}>
<span className={styles.dropdownIcon}>
<ShortcutIcon />
</span>
<span>Contact us</span>
</a>
<a
href="https://airy.co/faq"
target="_blank"
rel="noopener noreferrer"
className={styles.dropdownLine}>
<span className={styles.dropdownIcon}>
<ShortcutIcon />
</span>
<span>FAQ</span>
</a>
</div>
</ListenOutsideClick>
)}
</div>

<div className={styles.menuItem}>
<ListenOutsideClick onClose={hideAccountDropdown}>
<div className={styles.dropDown} onClick={accountClickHandler}>
<div className={styles.accountDetails}>
<div className={styles.accountName}>{props.firstName + ' ' + props.lastName}</div>
</div>
<div className={`${styles.dropHint} ${isAccountDropdownOn ? styles.dropHintOpen : ''}`}>
<span className={styles.chevronDown}>
<ChevronDownIcon />
</span>
</div>
<div className={styles.dropDown} onClick={accountClickHandler}>
<div className={styles.accountDetails}>
<div className={styles.accountName}>{props.firstName + ' ' + props.lastName}</div>
</div>
<div className={`${styles.dropHint} ${isAccountDropdownOn ? styles.dropHintOpen : ''}`}>
<span className={styles.chevronDown}>
<ChevronDownIcon />
</span>
</div>
</ListenOutsideClick>
</div>

{isAccountDropdownOn && (
<div className={styles.dropdown}>
<Link to={LOGOUT_ROUTE} className={styles.dropdownLine}>
<span className={styles.dropdownIcon}>
<LogoutIcon />
</span>
<span>Logout</span>
</Link>
<div className={styles.dropdownLastLine}>
<a className={styles.dropdownLastLink} href="https://airy.co/terms-of-service">
T&Cs
</a>
<a className={styles.dropdownLastLink} href="https://airy.co/privacy-policy">
Privacy Policy
</a>
<ListenOutsideClick onClose={hideAccountDropdown}>
<div className={styles.dropdown}>
<Link to={LOGOUT_ROUTE} className={styles.dropdownLine}>
<span className={styles.dropdownIcon}>
<LogoutIcon />
</span>
<span>Logout</span>
</Link>
<div className={styles.dropdownLastLine}>
<a className={styles.dropdownLastLink} href="https://airy.co/terms-of-service">
T&Cs
</a>
<a className={styles.dropdownLastLink} href="https://airy.co/privacy-policy">
Privacy Policy
</a>
</div>
</div>
</div>
</ListenOutsideClick>
)}
</div>
</div>
Expand Down

0 comments on commit 49f150b

Please sign in to comment.