summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorOskar <oskar@mullvad.net>2024-08-16 13:40:15 +0200
committerOskar <oskar@mullvad.net>2024-08-21 17:05:50 +0200
commit6af3e1650bedca66955e10da09cb2f0def314ab3 (patch)
tree8cb4d46d99ec8554915f91a29f457805d7a42286 /gui
parent3415f2e6e60faef6af419b54d4f4b5dd312720d5 (diff)
downloadmullvadvpn-6af3e1650bedca66955e10da09cb2f0def314ab3.tar.xz
mullvadvpn-6af3e1650bedca66955e10da09cb2f0def314ab3.zip
Add className prop to Accordion
Diffstat (limited to 'gui')
-rw-r--r--gui/src/renderer/components/Accordion.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/src/renderer/components/Accordion.tsx b/gui/src/renderer/components/Accordion.tsx
index f70258f103..70ae35c988 100644
--- a/gui/src/renderer/components/Accordion.tsx
+++ b/gui/src/renderer/components/Accordion.tsx
@@ -7,6 +7,7 @@ interface IProps {
children?: React.ReactNode;
onWillExpand?: (contentHeight: number) => void;
onTransitionEnd?: () => void;
+ className?: string;
}
interface IState {
@@ -55,6 +56,7 @@ export default class Accordion extends React.Component<IProps, IState> {
return (
<Container
ref={this.containerRef}
+ className={this.props.className}
$height={this.state.containerHeight}
$animationDuration={this.props.animationDuration}
onTransitionEnd={this.onTransitionEnd}>