Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable Art4Artist event #434

Merged
merged 3 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
version: "3.8"
services:
teia-ui:
image: registry.ziroh.be/teia-community/teia-ui:develop
build:
dockerfile: docker/Dockerfile
context: .
Expand Down
1 change: 1 addition & 0 deletions src/components/header/feed_toolbar/FeedToolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const locationMap = new Map([
['/feed/friends', 'Friends'],
// separator
['---fund_feeds', 'fund_feeds'],
['/feed/art4artists', 'Art4Artists'],
['/feed/tez4pal', '🇵🇸 Tez4Pal'],
['/feed/morocco-quake-aid', '🇲🇦 Quake Aid'],
['/feed/quake-aid', '🇹🇷🇸🇾 Quake Aid'],
Expand Down
8 changes: 8 additions & 0 deletions src/components/header/sample_events.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
// DEV SAMPLES
export const sample_events = [
{
title: 'Art4Artists',
icon: '🖼️ ',
link: 'https://x.com/EggsUnknow/status/1848805355620602309',
subtitle: 'Art4Artists',
content:
'Tezos Ecosystem #Art4Artists Breadfond',
},
{
title: 'Objkt4Objkt (4th edition)',
icon: '🖼️ ',
Expand Down
7 changes: 6 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const FEED_LIST = [
'🇵🇰 Pakistan',
'🇮🇷 Iran',
'🏳️‍🌈 Tezospride',
'Art4Artists',
'Image',
'Video',
'Audio',
Expand Down Expand Up @@ -148,7 +149,7 @@ export const MARKETPLACE_CONTRACTS_TO_NAME = flipObject(
)

export const HEN_CONTRACT_FA2 = 'KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton'

export const ART4ARTISTS_BREADFOND_CONTRACT = 'KT1LgnHXu8NVa674xJhSFhnKjrn7v2ZMsu2a'
export const TEZ4PAL_FUNDING_ADDRESS = 'tz2TfuukrHVoeUqFvcRViPJ2VqL7nEQi7xgW'
export const UKRAINE_FUNDING_CONTRACT = 'KT1DWnLiUkNtAQDErXxudFEH63JC6mqg3HEx'
export const PAKISTAN_FUNDING_CONTRACT = 'KT1Jpf2TAcZS7QfBraQMBeCxjFhH6kAdDL4z'
Expand Down Expand Up @@ -418,6 +419,10 @@ export const TabIndex = {

// TODO - get this manageable on-chain
export const ossProjects = [
{
name: 'Art4Artists Breadfond',
address: 'KT1LgnHXu8NVa674xJhSFhnKjrn7v2ZMsu2a',
},
{
name: 'Tez4Pal Fundraiser',
address: 'tz2TfuukrHVoeUqFvcRViPJ2VqL7nEQi7xgW',
Expand Down
2 changes: 2 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
QuakeFeed,
MoroccoQuakeFeed,
Tez4PalFeed,
Art4ArtistsFeed,
} from '@pages/home/feeds'
import Mint from '@pages/mint'
import { ObjktDisplay } from '@pages/objkt-display'
Expand Down Expand Up @@ -99,6 +100,7 @@ const router = createBrowserRouter(

<Route path="iran" element={<IranFeed />} />
<Route path="tez4pal" element={<Tez4PalFeed />} />
<Route path="art4artists" element={<Art4ArtistsFeed />} />
<Route path="morocco-quake-aid" element={<MoroccoQuakeFeed />} />
<Route path="quake-aid" element={<QuakeFeed />} />
<Route path="iran" element={<IranFeed />} />
Expand Down
14 changes: 14 additions & 0 deletions src/pages/home/feeds/fund-feeds.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
ART4ARTISTS_BREADFOND_CONTRACT,
TEZ4PAL_FUNDING_ADDRESS,
IRAN_FUNDING_CONTRACT,
MOROCCO_QUAKE_FUNDING_CONTRACT,
Expand Down Expand Up @@ -109,3 +110,16 @@ export function Tez4PalFeed() {
/>
)
}

export function Art4ArtistsFeed() {
return (
<FundFeed
introText={<>#Art4Artists Breadfond</>}
contractAddress={ART4ARTISTS_BREADFOND_CONTRACT}
cause="Art4Artists"
namespace="art4artists"
tags={['Art4Artists', '#Art4Artists']}
infoUrl="https://x.com/EggsUnknow/status/1848805355620602309"
/>
)
}
1 change: 1 addition & 0 deletions src/pages/home/feeds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export {
QuakeFeed,
MoroccoQuakeFeed,
Tez4PalFeed,
Art4ArtistsFeed,
} from './fund-feeds'
export { FriendsFeed } from './friends-feed'
export { RandomFeed } from './random-feed'
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type FeedComponentMap = {

export const feedComponentMap: FeedComponentMap = {
'Recent Sales': FEEDS.RecentSalesFeed,
'Art4Artists': FEEDS.Art4ArtistsFeed,
'🏳️‍🌈 Tezospride': FEEDS.TagFeed as FunctionComponent<Record<string, unknown>>,
'🇮🇷 Iran': FEEDS.IranFeed,
'Quake Aid': FEEDS.QuakeFeed,
Expand Down
Loading