Skip to content

Commit

Permalink
Merge pull request #2530 from Giveth/release-2.14.8
Browse files Browse the repository at this point in the history
Release 2.14.8
  • Loading branch information
RamRamez authored Apr 18, 2023
2 parents ee5e8b5 + 527d393 commit 09b9a3d
Show file tree
Hide file tree
Showing 29 changed files with 828 additions and 600 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
"GIVback",
"GIVBACKS",
"GIVeconomy",
"GIVgarden",
"giveth",
"GIVfarm",
"GIVfrens",
"GIVgarden",
"GIVpower",
"GIVstream",
"HONEYSWAP",
"IGIVpower",
"merkle",
"Notif",
"Subline",
"SUSHISWAP",
"swiper",
"texty",
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# The Giveth DApp

### Build status:
- Develop - [![build-develop](https://github.com/Giveth/giveth-dapps-v2/actions/workflows/Build.yml/badge.svg?branch=develop)](https://github.com/Giveth/giveth-dapps-v2/actions/workflows/Build.yml)
- Main - [![build-main](https://github.com/Giveth/giveth-dapps-v2/actions/workflows/Build.yml/badge.svg?branch=main)](https://github.com/Giveth/giveth-dapps-v2/actions/workflows/Build.yml)
--------------
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started
Expand Down
154 changes: 79 additions & 75 deletions lang/ca.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
"label.select_an_image_from_our_gallery": "Select an image from our gallery.",
"label.remove": "Remove",
"label.receiving_address": "Receiving address",
"label.address": "{chainName} address",
"label.chain_address": "{chainName} address",
"label.receiving_address_on": "Receiving address on {chainName}",
"label.my_wallet_address": "My Wallet Address",
"label.resolved_as": "Resolves as ",
Expand Down Expand Up @@ -1096,6 +1096,7 @@
"label.all_notifications_related_to_giveconomy": "All notifications related to GIVeconomy",
"art-and-culture_desc": "Support arts & culture projects with a focus on artwork,design, NFT's, and culture building.",
"art-and-culture": "Art & Culture",
"other": "Other",
"community": "Community",
"community_desc": "Support community projects with a focus on grassroots initiatives, housing, inclusion, social services, water & santitation, family & children and more.",
"economic-and-infrastructure": "Economics & Infrastructure",
Expand Down Expand Up @@ -1243,5 +1244,8 @@
"component.pfp_eligibility_modal.content.success": "You are eligible to mint your Giver early! Thanks for supporting Giveth",
"label.duration_ago": "{duration} ago",
"label.an_equivalent_of_up_to_40%": "An equivalent of up to 40% of the donation amount in GIV tokens!",
"label.read_more_on_our_docs": "Read more on our docs"
"label.read_more_on_our_docs": "Read more on our docs",
"label.recipient_addresses": "recipient addresses",
"label.add_new_address": "Add new address",
"label.manage_addresses": "Manage addresses"
}
8 changes: 6 additions & 2 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@
"label.select_an_image_from_our_gallery": "Escoge una imagen de nuestra galería.",
"label.remove": "Eliminar",
"label.receiving_address": "Dirección receptora",
"label.address": "Dirección de {chainName}",
"label.chain_address": "Dirección de {chainName}",
"label.receiving_address_on": "Dirección receptora en {chainName}",
"label.my_wallet_address": "Mi dirección de la billetera",
"label.resolved_as": "Resuelto como ",
Expand Down Expand Up @@ -1105,6 +1105,7 @@
"label.giveconomy_activities": "Actividades en GIVeconomy",
"label.all_notifications_related_to_giveconomy": "Todas las notificaciones relacionadas a GIVeconomy",
"art-and-culture": "Arte & Cultura",
"other": "Otro",
"art-and-culture_desc": "Apoya proyectos de arte & cultura enfocados en diseño, NFT, y construcción cultural.",
"community": "Comunidad",
"economic-and-infrastructure": "Economia & Infraestructura",
Expand Down Expand Up @@ -1253,5 +1254,8 @@
"component.pfp_eligibility_modal.content.not_eligible": "La billetera que conectaste no esta en nuestra lista para hacer minting adelantado. Si piensas que fue un error, contacta a nuestro equipo. Revisa nuestra documentación para más detalle en elegibilidad, o regresa cuando el mint público inicie el dia 24 de Marzo, 2023 a las 16:00 UTC.",
"label.duration_ago": "hace {duration}",
"label.an_equivalent_of_up_to_40%": "Un equivalente de hasta 40% del monto de la donación en GIV tokens!",
"label.read_more_on_our_docs": "Aprende más en nuestra doc"
"label.read_more_on_our_docs": "Aprende más en nuestra doc",
"label.recipient_addresses": "",
"label.add_new_address": "",
"label.manage_addresses": ""
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "givethdapp",
"version": "2.14.7",
"version": "2.14.8",
"private": true,
"scripts": {
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion pages/test1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const TestRoute = () => {
);
};

//This comment is for testing
//This comment is for testing1

const TestIndex = () => {
// const xDaiValues = useSelector(
Expand Down
69 changes: 69 additions & 0 deletions src/components/Badge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import {
neutralColors,
semanticColors,
SublineBold,
} from '@giveth/ui-design-system';
import React, { FC } from 'react';
import styled from 'styled-components';

export enum EBadgeStatus {
DEFAULT,
WARNING,
ERROR,
SUCCESS,
}

interface IBadge {
label: string;
status: EBadgeStatus;
showBullet?: boolean;
className?: string;
}

const badgeStatusToColor = (status: EBadgeStatus) => {
switch (status) {
case EBadgeStatus.DEFAULT:
return neutralColors.gray;
case EBadgeStatus.WARNING:
return semanticColors.golden;
case EBadgeStatus.ERROR:
return semanticColors.punch;
case EBadgeStatus.SUCCESS:
return semanticColors.jade;
default:
return neutralColors.gray;
}
};

export const Badge: FC<IBadge> = ({ label, status, showBullet, className }) => {
return (
<BadgeContainer
className={className}
mainColor={badgeStatusToColor(status)}
>
{showBullet && <BulletPoint>&bull;</BulletPoint>}
<SublineBold>{label}</SublineBold>
</BadgeContainer>
);
};

interface IBadgeContainer {
mainColor: any;
}

export const BadgeContainer = styled.span<IBadgeContainer>`
display: flex;
align-items: center;
color: ${props => props.mainColor[700]} !important;
background: ${props => props.mainColor[100]};
border: 2px solid ${props => props.mainColor[300]};
border-radius: 50px;
padding: 2px 8px;
height: 24px;
`;

const BulletPoint = styled.div`
font-size: 18px;
margin-right: 4px;
padding: 0;
`;
12 changes: 6 additions & 6 deletions src/components/NetworkLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import config from '@/configuration';
import { IconEthereum } from '@/components/Icons/Eth';
import { IconGnosisChain } from '@/components/Icons/GnosisChain';
import { IconPolygon } from '@/components/Icons/Polygon';
import config from '@/configuration';
import { IconOptimism } from './Icons/Optimism';
import { IconCelo } from './Icons/Celo';

const NetworkLogo = (props: { chainId?: number; logoSize?: number }) => {
const { chainId, logoSize } = props;
Expand All @@ -13,10 +13,10 @@ const NetworkLogo = (props: { chainId?: number; logoSize?: number }) => {
return <IconGnosisChain size={logoSize} />;
} else if (chainId === config.POLYGON_NETWORK_NUMBER) {
return <IconPolygon size={logoSize} />;
} else if (chainId === config.OPTIMISM_NETWORK_NUMBER) {
return <IconOptimism size={logoSize} />;
//TODO:Celo } else if (chainId === config.CELO_NETWORK_NUMBER) {
// return <IconCelo size={logoSize} />;
//TODO: Uncomment Optimism } else if (chainId === config.OPTIMISM_NETWORK_NUMBER) {
// return <IconOptimism size={logoSize} />;
} else if (chainId === config.CELO_NETWORK_NUMBER) {
return <IconCelo size={logoSize} />;
} else return null;
};

Expand Down
19 changes: 9 additions & 10 deletions src/components/VerificationBadge.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { FC } from 'react';
import { semanticColors } from '@giveth/ui-design-system';
import { EVerificationStatus } from '@/apollo/types/types';
import { Badge } from './styled-components/Badge';
import { Badge, EBadgeStatus } from './Badge';

interface IProps {
status?: EVerificationStatus;
Expand All @@ -10,23 +9,23 @@ interface IProps {

const VerificationBadge: FC<IProps> = ({ status, simplified }) => {
if (!status || status === EVerificationStatus.DRAFT) return null;
let title, color;
let label, badgeStatus;
switch (status) {
case EVerificationStatus.REJECTED:
title = simplified ? 'Rejected' : 'Verification rejected';
color = semanticColors.punch;
label = simplified ? 'Rejected' : 'Verification rejected';
badgeStatus = EBadgeStatus.ERROR;
break;
case EVerificationStatus.SUBMITTED:
title = simplified ? 'Request sent' : 'Verification request sent';
color = semanticColors.golden;
label = simplified ? 'Request sent' : 'Verification request sent';
badgeStatus = EBadgeStatus.WARNING;
break;
case EVerificationStatus.VERIFIED:
title = 'Verified';
color = semanticColors.jade;
label = 'Verified';
badgeStatus = EBadgeStatus.SUCCESS;
break;
}

return <Badge mainColor={color}>{title}</Badge>;
return <Badge status={badgeStatus} label={label} />;
};

export default VerificationBadge;
158 changes: 0 additions & 158 deletions src/components/modals/AddPolygonAddressModal.tsx

This file was deleted.

Loading

1 comment on commit 09b9a3d

@vercel
Copy link

@vercel vercel bot commented on 09b9a3d Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

giveth-dapps-v2 – ./

giveth-dapps-v2-givethio.vercel.app
giveth-dapps-v2-git-main-givethio.vercel.app
giveth.io
www.giveth.io

Please sign in to comment.