Skip to content

Commit

Permalink
Merge pull request #755 from danskernesdigitalebibliotek/DDFLSBP-310-…
Browse files Browse the repository at this point in the history
…fee-list-page-disappears

Don't hide fee list page
  • Loading branch information
JacobArrow authored Dec 8, 2023
2 parents fc44b61 + 12a0d7c commit 8cd7cd8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/apps/fee-list/FeeList.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React, { FC, useCallback, useEffect, useState } from "react";
import { useSelector } from "react-redux";
import Link from "../../components/atoms/links/Link";
import { useGetFeesV2 } from "../../core/fbs/fbs";
import { FeeV2 } from "../../core/fbs/model";
import { ModalIdsProps, useModalButtonHandler } from "../../core/utils/modal";
import { useModalButtonHandler } from "../../core/utils/modal";
import { useText } from "../../core/utils/text";
import { useUrls } from "../../core/utils/url";
import List from "./list";
Expand All @@ -25,7 +24,6 @@ const FeeList: FC = () => {

const [feeDetailsModalId, setFeeDetailsModalId] = useState("");
const { open } = useModalButtonHandler();
const { modalIds } = useSelector((s: ModalIdsProps) => s.modal);
const { data: fbsFees = [] } = useGetFeesV2<FeeV2[]>();
const [itemsPrePaymentChange, setItemsPrePaymentChange] = useState<
FeeV2[] | null
Expand Down Expand Up @@ -104,10 +102,7 @@ const FeeList: FC = () => {

return (
<>
<div
style={modalIds.length > 0 ? { display: "none" } : {}}
className="fee-list-page"
>
<div className="fee-list-page">
<h1 data-cy="fee-list-headline" className="text-header-h1 my-32">
{t("feeListHeadlineText")}
</h1>
Expand Down

0 comments on commit 8cd7cd8

Please sign in to comment.