Skip to content

Commit

Permalink
Merge pull request #7 from rarimo/fix/title-size
Browse files Browse the repository at this point in the history
Fix title size & KYC error
  • Loading branch information
ardier16 authored Dec 21, 2023
2 parents 63fb5e2 + 8b708a5 commit bbffdd0
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 6 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
#### Added
- `IsNotRegistered` KYC unauthorized error

#### Changed
- Notification toast styles
- Redirect to rariMe app on submitted proof view
- Update `large` media breakpoint to `1600px`

#### Fixed
- KYC providers. Fix title font size

## [2.5.2] - 2023-12-21
#### Changed
- OG image

## [2.5.1] - 2023-12-11
#### Fixed
Expand Down Expand Up @@ -152,7 +163,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Under the hood changes
- Initiated and setup project

[Unreleased]: https://gitlab.com/distributed_lab/frontend/react-template/compare/2.5.1...main
[Unreleased]: https://gitlab.com/distributed_lab/frontend/react-template/compare/2.5.2...main
[2.5.2]: https://gitlab.com/distributed_lab/frontend/react-template/compare/2.5.1...2.5.2
[2.5.1]: https://gitlab.com/distributed_lab/frontend/react-template/compare/2.5.0...2.5.1
[2.5.0]: https://gitlab.com/distributed_lab/frontend/react-template/compare/2.4.5...2.5.0
[2.4.5]: https://gitlab.com/distributed_lab/frontend/react-template/compare/2.4.4...2.4.5
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-template",
"private": true,
"version": "2.5.1",
"version": "2.5.2",
"gitHooks": {
"pre-commit": "tsc && yarn lint",
"pre-push": "yarn rsc"
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/kyc.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ enum KycUnauthorizedErrorCodes {
NotLikelyHuman = '4',
ScoreTooLow = '5',
InvalidGatewayToken = '6',
IsNotRegistered = '7',
}

export const localizeUnauthorizedError = (error: UnauthorizedError): string => {
Expand All @@ -34,5 +35,8 @@ export const localizeUnauthorizedError = (error: UnauthorizedError): string => {
[KycUnauthorizedErrorCodes.InvalidGatewayToken]: i18n.t(
'kyc-unauthorized-errors.invalid-gateway-token',
),
[KycUnauthorizedErrorCodes.IsNotRegistered]: i18n.t(
'kyc-unauthorized-errors.is-not-registered',
),
}[errorCode]
}
3 changes: 2 additions & 1 deletion src/localization/resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"nonce-not-found": "Nonce not found",
"not-likely-human": "Not likely human",
"score-too-low": "Your Gitcoin Passport Score is below the required threshold. It needs to be at least 15.",
"invalid-gateway-token": "Invalid gateway token"
"invalid-gateway-token": "Invalid gateway token",
"is-not-registered": "You are not registered in the KYC provider"
}
}
4 changes: 4 additions & 0 deletions src/pages/MainPage/components/4_KycProviders/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
.kyc-providers__title {
margin-bottom: toRem(40);

@include respond-to(large) {
font-size: toRem(40);
}

@include respond-to(xmedium) {
position: relative;
font-size: toRem(32);
Expand Down
2 changes: 1 addition & 1 deletion src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $media-breakpoints: (
tablet: 868px,
medium: 1024px,
xmedium: 1280px,
large: 1400px,
large: 1600px,
xlarge: 1920px,
xlarge2k: 2048px,
xlarge4k: 4096px,
Expand Down
Binary file added static/branding/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default defineConfig(({ mode }) => {
tag: 'meta',
attrs: {
property: 'og:image',
content: `${APP_DOMAIN}/branding/og-image.jpg`,
content: `${APP_DOMAIN}/branding/og-image.png`,
},
},
{
Expand Down Expand Up @@ -142,7 +142,7 @@ export default defineConfig(({ mode }) => {
tag: 'meta',
attrs: {
name: 'twitter:image',
content: `${APP_DOMAIN}/branding/og-image.jpg`,
content: `${APP_DOMAIN}/branding/og-image.png`,
},
},

Expand Down

0 comments on commit bbffdd0

Please sign in to comment.