From f685c684ea6ad9560bf587af78bf7bf2e0c65c3f Mon Sep 17 00:00:00 2001 From: rockyeverlast Date: Fri, 17 May 2024 15:08:53 +0530 Subject: [PATCH] Subnet Api integrated --- .../SubnetsComponent/Component1.jsx | 1 + .../SubnetsComponent/Component2.jsx | 17 +++-- .../SubnetsComponent/Component3.jsx | 7 +- .../SubnetsComponent/Component4.jsx | 3 +- .../SubnetsComponent/NewSubnetComp.jsx | 66 ++++++++++++++++++- 5 files changed, 84 insertions(+), 10 deletions(-) diff --git a/src/components/SubnetsComponent/Component1.jsx b/src/components/SubnetsComponent/Component1.jsx index 5f9ece4..360f1c3 100644 --- a/src/components/SubnetsComponent/Component1.jsx +++ b/src/components/SubnetsComponent/Component1.jsx @@ -1,3 +1,4 @@ +/* eslint-disable react/prop-types */ /* eslint-disable no-unused-vars */ import { Box, Button, Image, Text, Grid, GridItem } from "@chakra-ui/react"; import { Container } from "@chakra-ui/react"; diff --git a/src/components/SubnetsComponent/Component2.jsx b/src/components/SubnetsComponent/Component2.jsx index fc6f795..66635e9 100644 --- a/src/components/SubnetsComponent/Component2.jsx +++ b/src/components/SubnetsComponent/Component2.jsx @@ -1,3 +1,4 @@ +/* eslint-disable react/prop-types */ /* eslint-disable no-unused-vars */ import { Box, Button, Image, Text, Grid, GridItem } from "@chakra-ui/react"; import { Container } from "@chakra-ui/react"; @@ -10,10 +11,10 @@ import { } from "@chakra-ui/react"; import vector2 from "../../assets/images/vector2.png"; -export const Component2 = () => { +export const Component2 = ({ id, title, content }) => { return ( <> - + - Leverage own infrastructure for block space - Smart contracts in Rust , GoLang and C/C++ - WASM compiler for smooth code migration + {content} + {/* + Smart contracts in Rust , GoLang and C/C++ + + + WASM compiler for smooth code migration + */} ); diff --git a/src/components/SubnetsComponent/Component3.jsx b/src/components/SubnetsComponent/Component3.jsx index 981b5f1..b5d5d5e 100644 --- a/src/components/SubnetsComponent/Component3.jsx +++ b/src/components/SubnetsComponent/Component3.jsx @@ -1,3 +1,4 @@ +/* eslint-disable react/prop-types */ /* eslint-disable no-unused-vars */ import { Box, Button, Image, Text, Grid, GridItem } from "@chakra-ui/react"; import { Container } from "@chakra-ui/react"; @@ -10,7 +11,7 @@ import { } from "@chakra-ui/react"; import vector3 from "../../assets/images/vector3.png"; -export const Component3 = () => { +export const Component3 = ({ id, title, content }) => { return ( <> { > No GAS fees - Incremental and modular infrastructure ask + + Incremental and modular infrastructure ask + No expensive re training of development
resources diff --git a/src/components/SubnetsComponent/Component4.jsx b/src/components/SubnetsComponent/Component4.jsx index 67999ea..e023bcc 100644 --- a/src/components/SubnetsComponent/Component4.jsx +++ b/src/components/SubnetsComponent/Component4.jsx @@ -1,3 +1,4 @@ +/* eslint-disable react/prop-types */ /* eslint-disable no-unused-vars */ import { Box, Button, Image, Text, Grid, GridItem } from "@chakra-ui/react"; import { Container } from "@chakra-ui/react"; @@ -10,7 +11,7 @@ import { } from "@chakra-ui/react"; import vector4 from "../../assets/images/vector4.png"; -export const Component4 = () => { +export const Component4 = ({ id, title, content }) => { return ( <> { }, }} /> - {item?.decenters.map((data) => console.log(data[0]))} + {item?.decenters.map((data, index) => ( + <> + {index === 0 && ( + + + + )} + + {index === 1 && ( + + + + )} + + {index === 2 && ( + + + + )} + + {index === 3 && ( + + + + )} + + ))}