Hello I am a new with prismic and already read the tutorial. I have a a problem to query slice images in component. My code looks like this
import React from "react";
import { graphql, useStaticQuery } from 'gatsby';
const ComponentOne = () => {
const { wahlen } = useStaticQuery(graphql`
query {
wahlen: prismicHomePageWahlen {
data {
body {
... on PrismicHomePageWahlenBodyLinks {
id
items {
city_link
city_name
}
}
... on PrismicHomePageWahlenBodyImages {
id
items {
slide_images {
fluid(imgixParams: {maxHeight: 300}) {
...GatsbyPrismicImageFluid
}
}
}
}
}
subtitle {
text
}
title {
text
}
}
}
}
`);
return (
<section>
<div>
<div className="row">
<div className="col-lg-6">
<h2>
{wahlen.data.title.text}
</h2>
<div className="row">
</div>
</div>
<div className="col-lg-6">
<div >
<div className="item">
<div>
<img src={team1} />
</div>
</div>
<div className="item">
<div>
<img src={team1} />
</div>
</div>
</div>
</div>
</div>
</div>
</section>
);
};
export default ComponentOne;
Can Anyone help me please with this issue. How can I query the images?
Thanks.