Skip to content

Commit f29f680

Browse files
committed
fjernet unødvendig fragment
1 parent a5a35e2 commit f29f680

File tree

1 file changed

+35
-37
lines changed

1 file changed

+35
-37
lines changed

src/AvtaleSide/Oppgavelinje/Oppgavelinje.tsx

+35-37
Original file line numberDiff line numberDiff line change
@@ -49,43 +49,41 @@ const OppgaveLinje: React.FunctionComponent = () => {
4949
const visKunHendelseslog = avtaleAnnullertEllerAvbrutt || innloggetBruker.rolle !== 'VEILEDER';
5050

5151
return (
52-
<>
53-
<div className={cls.element('meny-wrapper')}>
54-
<TilbakeTilOversiktLenke onClick={lagreEndringer} />
55-
{visKunHendelseslog && (
56-
<div>
57-
<Varsellogg />
58-
</div>
59-
)}
60-
{!visKunHendelseslog && (
61-
<>
62-
<Button
63-
icon={<Expand />}
64-
iconPosition="right"
65-
variant="secondary"
66-
className={cls.element('popover-knapp')}
67-
id="menyKnapp"
68-
onClick={(e) => toggleMenu(e)}
69-
aria-expanded={dropdown !== undefined}
70-
aria-controls={'menyvalg'}
71-
aria-haspopup="menu"
72-
>
73-
Meny
74-
</Button>
75-
<Popover
76-
placement="bottom-end"
77-
open={erÅpnet}
78-
anchorEl={dropdown}
79-
onClose={() => setDropdown(null)}
80-
>
81-
<Popover.Content>
82-
<OppgaveLenker />
83-
</Popover.Content>
84-
</Popover>
85-
</>
86-
)}
87-
</div>
88-
</>
52+
<div className={cls.element('meny-wrapper')}>
53+
<TilbakeTilOversiktLenke onClick={lagreEndringer} />
54+
{visKunHendelseslog && (
55+
<div>
56+
<Varsellogg />
57+
</div>
58+
)}
59+
{!visKunHendelseslog && (
60+
<>
61+
<Button
62+
icon={<Expand />}
63+
iconPosition="right"
64+
variant="secondary"
65+
className={cls.element('popover-knapp')}
66+
id="menyKnapp"
67+
onClick={(e) => toggleMenu(e)}
68+
aria-expanded={dropdown !== undefined}
69+
aria-controls={'menyvalg'}
70+
aria-haspopup="menu"
71+
>
72+
Meny
73+
</Button>
74+
<Popover
75+
placement="bottom-end"
76+
open={erÅpnet}
77+
anchorEl={dropdown}
78+
onClose={() => setDropdown(null)}
79+
>
80+
<Popover.Content>
81+
<OppgaveLenker />
82+
</Popover.Content>
83+
</Popover>
84+
</>
85+
)}
86+
</div>
8987
);
9088
};
9189

0 commit comments

Comments
 (0)