Skip to content

Commit

Permalink
competion json changed and then showing tritter links on options
Browse files Browse the repository at this point in the history
  • Loading branch information
codingshot committed Jan 13, 2025
1 parent ce94da9 commit 309e5b0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
6 changes: 6 additions & 0 deletions src/components/CompetitionCard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect, useState } from 'react';
import Image from 'next/image';
import { ListContract } from '../config';
import { FaTwitter } from 'react-icons/fa';

const CompetitionCard = ({ competition, listLink, profiles, wallet }) => {
const [listDetails, setListDetails] = useState(null);
Expand Down Expand Up @@ -112,6 +113,11 @@ const CompetitionCard = ({ competition, listLink, profiles, wallet }) => {
{item.comment}
</div>
)}
{item.twitterLink && (
<a href={item.twitterLink} target="_blank" rel="noopener noreferrer" className="ml-2">
<FaTwitter size={16} />
</a>
)}
</div>
);
})}
Expand Down
32 changes: 16 additions & 16 deletions src/data/competitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"listLink": "",
"points": 8,
"content": [
{ "name": "Eth Denver", "comment": "Alice in wonderland theme with Chain Abstraction" },
{ "name": "Eth Denver", "comment": "Alice in wonderland theme with Chain Abstraction", "twitterLink": "https://twitter.com/EthereumDenver" },
{ "name": "Consensys", "comment": "Chain Abstraction" },
{ "name": "Redacted + Devcon", "comment": "NEARCON reimagined" },
{ "name": "Token2049", "comment": "NEAR AI Showcase, return of Skidanov" },
Expand Down Expand Up @@ -775,7 +775,7 @@
{ "name": "Oleg", "comment": "" },
{ "name": "Russ", "comment": "" },
{ "name": "Cameron", "comment": "" },
{ "name": "Efiz πŸ’™", "comment": "" }
{ "name": "Efiz", "comment": "" }
]
},
{
Expand Down Expand Up @@ -814,7 +814,7 @@
"listLink": "https://alpha.potlock.org/list/47",
"points": 10,
"content": [
{ "name": "Harshit from NEAE foundation", "comment": "" },
{ "name": "Harshit from NEAR Foundation", "comment": "" },
{ "name": "AVB from Wild User Interviews", "comment": "" },
{ "name": "Dleer from Neko", "comment": "" },
{ "name": "Wax From Chill", "comment": "" },
Expand All @@ -831,13 +831,13 @@
"listLink": "https://alpha.potlock.org/list/46",
"points": 10,
"content": [
{ "name": "Guillermo - writes all docs and leads dev rel", "comment": "" },
{ "name": "Elliot - build dao and ecosystem savan", "comment": "" },
{ "name": "Min - keypom cto and og dev rel", "comment": "" },
{ "name": "Vlad - devhub and super near og", "comment": "" },
{ "name": "Joe - OG dev rel, shard dog shipper, livestreamer", "comment": "" },
{ "name": "Owen - devrel, community caller, leaving to pursue on-chaindegeneracy at BetVex", "comment": "" },
{ "name": "Luis from Bitte", "comment": "" }
{ "name": "Guillermo", "comment": "writes all docs and leads dev rel" },
{ "name": "Elliot", "comment": "build dao and ecosystem savan" },
{ "name": "Min", "comment": "keypom cto and og dev rel" },
{ "name": "Vlad", "comment": "devhub and super near og" },
{ "name": "Joe", "comment": "OG dev rel, shard dog shipper, livestreamer" },
{ "name": "Owen", "comment": "devrel, community caller, leaving to pursue on-chaindegeneracy at BetVex" },
{ "name": "Microchipgnu", "comment": "CTO of Mintbase" }
]
},
{
Expand All @@ -847,12 +847,12 @@
"listLink": "https://alpha.potlock.org/list/50",
"points": 10,
"content": [
{ "name": "Chris Donavan 🟑", "comment": "" },
{ "name": "Abhishek, General Counsel at NEAR FOUNDATION 🟑", "comment": "" },
{ "name": "Marc Goldfinch, Counsel at Proximity 🟑", "comment": "" },
{ "name": "Atrox, NDC & Blackdragon", "comment": "" },
{ "name": "Bianca, NEAR Foundation πŸŒ•", "comment": "" },
{ "name": "Davin, NEAR Foundation πŸŒ•", "comment": "" }
{ "name": "Chris Donavan", "comment": "COO of NEAR Foundation" },
{ "name": "Abhishek", "comment": "General Counsel at NEAR Foundation" },
{ "name": "Marc Goldfinch", "comment": "Counsel at Proximity" },
{ "name": "Atrox", "comment": "Atrox, NDC & Blackdragon" },
{ "name": "Bianca", "comment": "NEAR Foundation" },
{ "name": "Davin", "comment": "NEAR Foundation" }
]
}
]
Expand Down

0 comments on commit 309e5b0

Please sign in to comment.