Skip to content

Commit 7f6d4c3

Browse files
committed
Always hiding notes, even if there's only one.
1 parent 3d9920a commit 7f6d4c3

File tree

1 file changed

+13
-5
lines changed
  • src/modules/resource-acccess/components/Holder

1 file changed

+13
-5
lines changed

src/modules/resource-acccess/components/Holder/index.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,24 @@ const notesList = (notes) => {
1515

1616
if (notes.length === 1) {
1717
return (
18-
<p className='text-grey__light'>
19-
{notes[0]}
20-
</p>
18+
<Expandable>
19+
<ExpandableChildren show={0}>
20+
<p className='text-grey__light margin-bottom__none'>
21+
{notes[0]}
22+
</p>
23+
</ExpandableChildren>
24+
<ExpandableButton
25+
name='holdings note'
26+
count={notes.length}
27+
/>
28+
</Expandable>
2129
);
2230
}
2331

2432
return (
2533
<Expandable>
2634
<ul className='margin-bottom__none'>
27-
<ExpandableChildren show={2}>
35+
<ExpandableChildren show={0}>
2836
{notes.map((note, index) => {
2937
return (
3038
<li
@@ -38,7 +46,7 @@ const notesList = (notes) => {
3846
</ExpandableChildren>
3947
</ul>
4048

41-
{notes.length > 2 && (
49+
{notes.length > 0 && (
4250
<ExpandableButton
4351
name='holdings notes'
4452
count={notes.length}

0 commit comments

Comments
 (0)