Skip to content

Commit

Permalink
DIGG-448: commenting out button for modal
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaMunterud committed Dec 9, 2024
1 parent 6b3c434 commit d5e940b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions features/entryscape/organisation-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import useTranslation from "next-translate/useTranslation";
import React, { FC, useContext, useEffect, useState } from "react";
import React, { FC, useContext, useEffect } from "react";

import ArrowRightIcon from "@/assets/icons/arrow-right.svg";
import DiamondIcon from "@/assets/icons/diamond.svg";
import HoldingHandsIcon from "@/assets/icons/holding-hands.svg";
import ListBlockIcon from "@/assets/icons/list-block.svg";
import QuestionCircleIcon from "@/assets/icons/question-circle.svg";
import { Button, ButtonLink } from "@/components/button";
// import QuestionCircleIcon from "@/assets/icons/question-circle.svg";
import { ButtonLink } from "@/components/button";
import { CustomLink } from "@/components/custom-link";
import { Container } from "@/components/layout/container";
import { Modal } from "@/components/modal";
// import { Modal } from "@/components/modal";
import { Heading } from "@/components/typography/heading";
import {
DatasetInfo,
Expand All @@ -27,7 +27,7 @@ export const OrganisationPage: FC = () => {
const { setBreadcrumb, iconSize } = useContext(SettingsContext);
const entry = useContext(EntrystoreContext);
const { t } = useTranslation();
const [showInfo, setShowInfo] = useState(false);
// const [showInfo, setShowInfo] = useState(false);

useEffect(() => {
setBreadcrumb?.({
Expand Down Expand Up @@ -83,23 +83,25 @@ export const OrganisationPage: FC = () => {
className="mb-lg inline-flex items-center gap-[0.625rem]"
>
{t("common|datasets")}
<Button
{/* TODO: Uncomment when text for modal is ready */}
{/* <Button
variant="plain"
className="rounded-full !p-xs"
aria-label={t("pages|organisation_page$data-info")}
icon={QuestionCircleIcon}
iconPosition="left"
onClick={() => setShowInfo(!showInfo)}
/>
/> */}
</Heading>
<Modal
{/* TODO: Uncomment when text for modal is ready */}
{/* <Modal
modalOpen={showInfo}
setModalOpen={setShowInfo}
onClick={() => setShowInfo(false)}
heading={t("pages|organisation_page$data-info")}
description={t("pages|organisation_page$data-info-more")}
confirmBtn={t("common|close")}
/>
/> */}
<div className="box-border flex w-full flex-col items-center gap-xl rounded-lg bg-white p-xl md:items-end">
<div className="flex w-full flex-col items-center py-lg md:flex-row">
<div className="flex flex-shrink-0 flex-col items-center gap-sm">
Expand Down

0 comments on commit d5e940b

Please sign in to comment.