Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Merge requests
!251
Resolve "Unfolding the dropdowns in GRAPHICS of Export permanently"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Unfolding the dropdowns in GRAPHICS of Export permanently"
296-unfolding-the-dropdowns-in-graphics-of-export-permanently
into
main
Overview
0
Commits
1
Pipelines
3
Changes
7
Merged
Piotr Gawron
requested to merge
296-unfolding-the-dropdowns-in-graphics-of-export-permanently
into
main
5 months ago
Overview
0
Commits
1
Pipelines
3
Changes
7
Expand
Closes
#296 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
d0fe7db4
1 commit,
5 months ago
7 files
+
8
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
src/components/Map/Drawer/ExportDrawer/CollapsibleSection/CollapsibleSection.component.tsx
+
3
−
1
Options
@@ -12,12 +12,14 @@ type CollapsibleSectionProps = {
title
:
string
;
children
:
React
.
ReactNode
;
onOpened
?():
void
;
dangerouslySetExpanded
?:
boolean
;
};
export
const
CollapsibleSection
=
({
title
,
children
,
onOpened
,
dangerouslySetExpanded
,
}:
CollapsibleSectionProps
):
React
.
ReactNode
=>
{
const
handleOnChange
=
(
ids
:
ID
[]):
void
=>
{
const
hasBeenOpened
=
ids
.
length
>
ZERO
;
@@ -29,7 +31,7 @@ export const CollapsibleSection = ({
return
(
<
Accordion
allowZeroExpanded
onChange
=
{
handleOnChange
}
>
<
AccordionItem
>
<
AccordionItem
dangerouslySetExpanded
=
{
dangerouslySetExpanded
}
>
<
AccordionItemHeading
>
<
AccordionItemButton
>
{
title
}
</
AccordionItemButton
>
</
AccordionItemHeading
>
Loading