Skip to content

Commit

Permalink
fix(admin): remove expandable
Browse files Browse the repository at this point in the history
  • Loading branch information
asewilhelmsen committed Jul 13, 2023
1 parent ac2e7be commit f3f9570
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions next-tavla/src/Admin/scenarios/SelectLines/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Switch } from '@entur/form'
import { ExpandablePanel } from '@entur/expand'
import { TQuayTile, TStopPlaceTile } from 'types/tile'
import { uniqBy } from 'lodash'
import classes from './styles.module.css'
Expand All @@ -26,25 +25,23 @@ function SelectLines<T extends TStopPlaceTile | TQuayTile>({

return (
<div className={classes.lineToggleContainer}>
<ExpandablePanel title="Velg linjer">
<div className={classes.linesGrid}>
{uniqLines.map((line) => (
<div key={line.id}>
<Switch
checked={
tile.whitelistedLines?.includes(line.id) ??
false
}
onChange={() => {
toggleLine(line.id)
}}
>
{line.publicCode} {line.name}
</Switch>
</div>
))}
</div>
</ExpandablePanel>
<div className={classes.linesGrid}>
{uniqLines.map((line) => (
<div key={line.id}>
<Switch
checked={
tile.whitelistedLines?.includes(line.id) ??
false
}
onChange={() => {
toggleLine(line.id)
}}
>
{line.publicCode} {line.name}
</Switch>
</div>
))}
</div>
</div>
)
}
Expand Down

0 comments on commit f3f9570

Please sign in to comment.