Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(update) : corrected the image ref name #1446

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions src/features/default/src/Components/DatasetCard/DatasetCard.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import location from '../../Assets/Img/location.svg';
import category from '../../Assets/Img/category.svg';
import apartment from '../../Assets/Img/apartment.svg';
import globe_img from '../../Assets/Img/globe_img.svg';
import location from "../../Assets/Img/location.svg";
import category_icon from "../../Assets/Img/category.svg";
import apartment from "../../Assets/Img/apartment.svg";
import globe_img from "../../Assets/Img/globe_img.svg";
import { Card, Typography, useMediaQuery, useTheme } from "@mui/material";
import React from "react";
import LocalStyle from "./DatasetCard.module.css";
Expand All @@ -26,7 +26,7 @@ const DatasetCart = (props) => {
className={mobile ? LocalStyle.cardContainerSm : LocalStyle.cardContainer}
>
<div className="published">
<img src={globe_img} />
<img src={globe_img} />
<span className="published_text">
Published on:{" "}
{publishDate?.split("T")[0]
Expand All @@ -36,16 +36,14 @@ const DatasetCart = (props) => {
</div>
<div className="d_content_title">{title}</div>
<div className={"organisation"}>
{orgnisationName && (
<img src={apartment} />
)}
{orgnisationName && <img src={apartment} />}
{orgnisationName && (
<span className="organisation_text">{orgnisationName}</span>
)}
</div>
<div className="d_content_text">
<div className="category">
<img src={category} alt="category" />
<img src={category_icon} alt="category" />
<span className="category_text">
{Object.keys(category).length
? category?.length > 1
Expand All @@ -55,7 +53,7 @@ const DatasetCart = (props) => {
</span>
</div>
<div className="location">
<img src={location} alt="location" />
<img src={location} alt="location" />
<span className="location_text">
{geography?.country?.name
? geography?.country?.name
Expand Down
Loading