Skip to content

Commit

Permalink
category explanations as tool tips
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrks committed Aug 26, 2024
1 parent 943f633 commit 108e2b5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/NavItems/tools/C2pa/Results/C2paResults.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
Accordion,
AccordionDetails,
AccordionSummary,
Tooltip,
} from "@mui/material";

import {
Expand All @@ -29,6 +30,7 @@ import { MapContainer, Marker, Popup, TileLayer } from "react-leaflet";
import { Icon as GeoIcon } from "leaflet";
import { useState } from "react";
import MapIcon from "@mui/icons-material/Map";
import HelpIcon from "@mui/icons-material/Help";

/**
*
Expand Down Expand Up @@ -79,13 +81,14 @@ const C2paResults = (props = { result, handleClose }) => {
*/
const title = (title, information) => {
return (
<Grid container direction="column">
<Grid container direction="row" alignItems="center">
<Grid item>
<Typography variant="h6">{keyword(title)}</Typography>
</Grid>
{/* <Grid item p={1}>
<Alert severity="info">{keyword(information)}</Alert>
</Grid> */}
<Grid item m={2} />
<Tooltip title={<h3>{keyword(information)}</h3>}>
<HelpIcon />
</Tooltip>
</Grid>
);
};
Expand Down

0 comments on commit 108e2b5

Please sign in to comment.