Skip to content

Commit

Permalink
Remove: default open
Browse files Browse the repository at this point in the history
  • Loading branch information
andregroseth committed Dec 12, 2024
1 parent 7573b2c commit b218f91
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import RisikoscenarioAccordionContent from './RisikoscenarioAccordianContent'

interface IProps {
risikoscenarioList: IRisikoscenario[]
defaultOpen: boolean
defaultOpen?: boolean
}

export const RisikoscenarioAccordianList = (props: IProps) => {
const { risikoscenarioList, defaultOpen } = props
const { risikoscenarioList } = props

useEffect(() => {
if (window.location.hash) {
Expand All @@ -26,11 +26,7 @@ export const RisikoscenarioAccordianList = (props: IProps) => {
<div>
<Accordion className="max-w-[75ch]">
{risikoscenarioList.map((risikoscenario, index) => (
<Accordion.Item
defaultOpen={defaultOpen}
id={risikoscenario.id}
key={index + '_' + risikoscenario.navn}
>
<Accordion.Item id={risikoscenario.id} key={index + '_' + risikoscenario.navn}>
<Accordion.Header>{risikoscenario.navn}</Accordion.Header>
<Accordion.Content>
<RisikoscenarioAccordionContent risikoscenario={risikoscenario} />
Expand Down

0 comments on commit b218f91

Please sign in to comment.