-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gjer det mogleg å sortere på datokolonna for hendelsesfiltera
- Loading branch information
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
21 changes: 15 additions & 6 deletions
21
src/components/tabell/headerceller/FilterhendelseDatoOpprettet.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
import {HeadercelleProps} from './HeadercelleProps'; | ||
import {Sorteringsfelt} from '../../../model-interfaces'; | ||
import {Kolonne} from '../../../ducks/ui/listevisning'; | ||
import Header from '../header'; | ||
import SorteringHeader from '../sortering-header'; | ||
|
||
export const FilterhendelseDatoOpprettet = ({valgteKolonner}: HeadercelleProps) => ( | ||
<Header | ||
export const FilterhendelseDatoOpprettet = ({ | ||
gjeldendeSorteringsfelt, | ||
valgteKolonner, | ||
rekkefolge, | ||
onClick | ||
}: HeadercelleProps) => ( | ||
<SorteringHeader | ||
skalVises={valgteKolonner.includes(Kolonne.FILTERHENDELSE_DATO_OPPRETTET)} | ||
sortering={Sorteringsfelt.FILTERHENDELSE_DATO_OPPRETTET} | ||
erValgt={gjeldendeSorteringsfelt === Sorteringsfelt.FILTERHENDELSE_DATO_OPPRETTET} | ||
rekkefolge={rekkefolge} | ||
onClick={onClick} | ||
tekst="Dato for hendelse" | ||
title="Dato da hendelsen ble opprettet" | ||
className="col col-xs-2" | ||
> | ||
Dato for hendelse | ||
</Header> | ||
></SorteringHeader> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters