Skip to content

Commit

Permalink
change passage nav hat pointer conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Dec 31, 2024
1 parent c340d03 commit bf0e3e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/organisms/passageNavigation/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
gap: 10px;
align-items: center;
justify-content: space-between;
cursor: pointer;

h6 {
margin: 0;
Expand All @@ -30,6 +29,10 @@
}
}

.hasChildren .hat {
cursor: pointer;
}

.dropdownButton {
text-decoration: none;
font-size: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/passageNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function PassageNavigation({
}, [chapter]);

return (
<div className={styles.base}>
<div className={clsx(styles.base, { [styles.hasChildren]: !!children })}>
<div className={styles.hat} onClick={() => setOpen(!open)}>
<BibleVersionTypeLockup unpadded label={chapter?.title || 'Bible'} />
<Dropdown
Expand Down

0 comments on commit bf0e3e3

Please sign in to comment.