-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1597 from Plant-for-the-Planet-org/develop
Release November 2nd, 2022
- Loading branch information
Showing
50 changed files
with
890 additions
and
559 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React, { ReactElement } from 'react'; | ||
import UserLayout from '../../../src/features/common/Layout/UserLayout/UserLayout'; | ||
import Head from 'next/head'; | ||
import i18next from '../../../i18n'; | ||
import GiftFunds from '../../../src/features/user/GiftFunds'; | ||
|
||
const { useTranslation } = i18next; | ||
|
||
interface Props {} | ||
export default function Register({}: Props): ReactElement { | ||
const { t } = useTranslation('me'); | ||
return ( | ||
<UserLayout> | ||
<Head> | ||
<title>{t('giftFund')}</title> | ||
</Head> | ||
<GiftFunds /> | ||
</UserLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
|
||
const NotionLinkIcon = (props: any) => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
enableBackground="new 0 0 24 24" | ||
height="24px" | ||
viewBox="0 0 24 24" | ||
width="24px" | ||
fill="none" | ||
> | ||
<g> | ||
<rect fill="none" height="24" width="24" /> | ||
<path | ||
fill={props.color ? props.color : '#5f6368'} | ||
d="M20.41,8.41l-4.83-4.83C15.21,3.21,14.7,3,14.17,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V9.83 C21,9.3,20.79,8.79,20.41,8.41z M7,7h7v2H7V7z M17,17H7v-2h10V17z M17,13H7v-2h10V13z" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default NotionLinkIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"title": "GiftFund", | ||
"description1": "If you see this page, then you have balance in your GiftFund for your active PlanetCash account left. Check the information below.", | ||
"description2": "In case of questions, please contact your Key Account Manager.", | ||
"project": "Project", | ||
"units": "Available Units" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { styled } from '@mui/material'; | ||
|
||
/** | ||
* Header container to be placed above a html `<form>` element. | ||
*/ | ||
const FormHeader = styled('header')(({ theme }) => ({ | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: 16, | ||
width: '100%', | ||
'& .formTitle': { | ||
color: theme.palette.text.secondary, | ||
fontSize: theme.typography.h2.fontSize, | ||
}, | ||
})); | ||
|
||
export default FormHeader; |
42 changes: 36 additions & 6 deletions
42
src/features/common/Layout/Forms/InlineFormDisplayGroup.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,45 @@ | ||
import { styled } from '@mui/material'; | ||
import { ReactElement, ReactNode } from 'react'; | ||
|
||
const InlineFormDisplayGroup = styled('div')({ | ||
const InlineFormGroup = styled('div')({ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
gap: '16px', | ||
alignItems: 'center', | ||
columnGap: 16, | ||
rowGap: 24, | ||
alignItems: 'flex-start', | ||
flexWrap: 'wrap', | ||
|
||
'@media(max-width: 481px)': { | ||
flexDirection: 'column', | ||
'&.InlineFormGroup--other': { | ||
alignItems: 'center', | ||
flexWrap: 'nowrap', | ||
}, | ||
'& .MuiTextField-root': { | ||
flex: 1, | ||
minWidth: 180, | ||
}, | ||
}); | ||
|
||
interface Props { | ||
/** Use type='other' to specify inline groups that do not contain only text field elements */ | ||
type?: 'field' | 'other'; | ||
children: ReactNode; | ||
} | ||
|
||
/** | ||
* Responsive element that groups fields/other form elements that need to be arranged in one line | ||
*/ | ||
const InlineFormDisplayGroup = ({ | ||
type = 'field', | ||
children, | ||
}: Props): ReactElement => { | ||
return ( | ||
<InlineFormGroup | ||
className={ | ||
type === 'field' ? 'InlineFormGroup--fields' : 'InlineFormGroup--other' | ||
} | ||
> | ||
{children} | ||
</InlineFormGroup> | ||
); | ||
}; | ||
|
||
export default InlineFormDisplayGroup; |
17 changes: 7 additions & 10 deletions
17
...Layout/DashboardView/SingleColumnView.tsx → .../common/Layout/SingleColumnView/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
82b3c46
There was a problem hiding this comment.
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:
planet-webapp – ./
planet-webapp-planetapp.vercel.app
globalforest.vercel.app
planet-webapp-git-main-planetapp.vercel.app
www1.plant-for-the-planet.org