diff --git a/src/App.js b/src/App.js index e647c4c..5d3ec4b 100644 --- a/src/App.js +++ b/src/App.js @@ -13,44 +13,42 @@ function App() {

{data.title}

- - {data.links.map((rootDetail, index)=>{ - if(rootDetail.type === "facebook") { - res = - } - else if(rootDetail.type === "instagram") { - res = - } - else if (rootDetail.type === "twitter") { - res = - } - else if (rootDetail.type === "github") { - res = - } - else if (rootDetail.type === "youtube") { - res = - } - else if (rootDetail.type === "linkedin") { - res = - } - else if (rootDetail.type === "pinterest") { - res = - } - else if (rootDetail.type === "tumblr") { - res = - } - else if (rootDetail.type === "reddit") { - res = - } - else if (rootDetail.type === "basic") { - res = - } - else { - // throw "One of your roots has an unrecognized type. Check out the documentation for the supported types."; - } - return res; - })} - + {data.links.map((rootDetail, index)=>{ + if(rootDetail.type === "facebook") { + res = + } + else if(rootDetail.type === "instagram") { + res = + } + else if (rootDetail.type === "twitter") { + res = + } + else if (rootDetail.type === "github") { + res = + } + else if (rootDetail.type === "youtube") { + res = + } + else if (rootDetail.type === "linkedin") { + res = + } + else if (rootDetail.type === "pinterest") { + res = + } + else if (rootDetail.type === "tumblr") { + res = + } + else if (rootDetail.type === "reddit") { + res = + } + else if (rootDetail.type === "basic") { + res = + } + else { + // throw "One of your roots has an unrecognized type. Check out the documentation for the supported types."; + } + return res; + })}
);