-
Notifications
You must be signed in to change notification settings - Fork 5
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 #27 from infinum/feature/buckaroo-fixes
Last changes before 0.1.0
- Loading branch information
Showing
24 changed files
with
550 additions
and
78 deletions.
There are no files selected for viewing
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,14 @@ | ||
import { BaseControl } from '@wordpress/components'; | ||
|
||
export const NewSection = (props) => { | ||
const { | ||
label, | ||
} = props; | ||
|
||
return ( | ||
<BaseControl> | ||
<hr /> | ||
<div className={'notice-title'}>{label}</div> | ||
</BaseControl> | ||
); | ||
}; |
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
20 changes: 20 additions & 0 deletions
20
src/blocks/custom/form/components/cant-have-multiple-redirects-notice.js
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 { __ } from '@wordpress/i18n'; | ||
import { Notice } from '@wordpress/components'; | ||
|
||
export const CantHaveMultipleRedirects = (props) => { | ||
const { | ||
dismissError, | ||
forSelects = false, | ||
} = props; | ||
|
||
return ( | ||
<Notice status="error" onRemove={dismissError}> | ||
{forSelects && | ||
__('Unable to select type that redirects since redirection on success is already enabled.', 'eightshift-forms') | ||
} | ||
{!forSelects && | ||
__('Unable to redirect user since one of the form types already redirects.', 'eightshift-forms') | ||
} | ||
</Notice> | ||
); | ||
}; |
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.