We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5742dae commit b71dfeaCopy full SHA for b71dfea
src/components/Table.jsx
@@ -19,7 +19,7 @@ const Table = (props) => {
19
console.error("ops! error: " + err);
20
});
21
22
- api.get("./data/socials.json")
+ api.get("./data/socials.json", { params: { symbol: props.symbol } })
23
.then((response) => {
24
const data = response.data.filter(social => social.Symbol.includes(props.symbol))
25
setSocialMedia(data.map(function (img) { return img['Media']; }));
0 commit comments