this is my first time posting to stackOverflow. I'm trying AntDesign, and got a problem. Help me figure out how to pass a link from the data to the render.
one item from data example:
{
name: "Aburame Clan",
number: "01",
description:
"This clan from Konoha Village is known for its ties to insect. At birth clan members form an agreement with bugs to inhabit and feed on the chakra their body creates. In return the bugs will serve the commands of the clan member.",
image: "https://narutoql.s3.amazonaws.com/Aburame.jpg",
village: "Leaf village",
link: "https://naruto.fandom.com/wiki/Aburame_Clan?so=search",
}
my column with render:
const columns = [
{
title: "Clan name",
dataIndex: "name",
key: "name",
address: "link",
render: (text, link) => (
<>
{text}
<Button type="link" href={link} icon={<InfoCircleOutlined />}></Button>
</>
),
},
I have a data.js file that has an object with clans from naruto. In general, everything works perfectly for me, but I wanted to add a link to the wiki article next to each clan name, and added a link icon to each name using render in columns. But the problem is that I do not understand how I can connect the address itself there.
I just need you to help me figure out how to pass the link from my microdatabase to this render, thank you all in advance, love you all