Commit 90da3545 authored by jrc632's avatar jrc632
Browse files

Added template method to show metadata

showMetadata in footprintResults still needs to be linked with the metadata list.
STAC browser link is empty.
parent 9e98b3f7
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -47,6 +47,11 @@ export default function FootprintResults(props) {

  const [features, setFeatures] = React.useState([]);

  const showMetadata = value => () => {
    // launch metadata popup here
    console.log(value);
  }

  useEffect(() => {
    setTimeout(() => {
      setFeatures(getFeatures);
@@ -96,8 +101,7 @@ export default function FootprintResults(props) {
                  label="Metadata"
                  icon={<PreviewIcon/>}
                  size="small"
                  component="a"
                  href="#"
                  onClick={showMetadata(feature)}
                  variant="outlined"
                  clickable
                />