-
Notifications
You must be signed in to change notification settings - Fork 2
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: endorsement list and request endorsement for schema #324
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4b50d4d
Implemented Endorsement list page, updated content with ecosystem rol…
sanjay-k1910 17dc1f2
Merge branch 'develop' of https://github.com/credebl/studio into feat…
sanjay-k1910 a5ac739
feat: endorsement popups
MoulikaKulkarni e3e943f
feat: endorsement popups
MoulikaKulkarni 42af753
feat: endorsement popups
MoulikaKulkarni 70c165e
feat: endorsement popups
MoulikaKulkarni 28130c1
Merge branch 'develop' of https://github.com/credebl/studio into feat…
sanjay-k1910 411599a
refactor: added endorsement request apis and implemented confirmpopup…
sanjay-k1910 5f5d25c
Merge branch 'feat-endorsement' of https://github.com/credebl/studio …
sanjay-k1910 a20920a
Merge pull request #318 from credebl/ecosystem-endorsement-popups
sanjay-k1910 e6c7d44
refactor: create schema endorsement request API, endorsement card add…
sanjay-k1910 8905112
Merge branch 'develop' of https://github.com/credebl/studio into feat…
sanjay-k1910 1986f49
refactor: passed orgId in ecosystem get request
sanjay-k1910 bb016d8
refactor: endorsement list api and request schema endorsement api
sanjay-k1910 fd06cb5
refactor: create endorsement request condition
sanjay-k1910 11c5f45
Merge branch 'develop' of https://github.com/credebl/studio into feat…
sanjay-k1910 05245a7
refactor: unused props and schema list
sanjay-k1910 a5272f8
refactor: check ecosystem function and resolved sonarlint issues
sanjay-k1910 78acca8
Merge branch 'develop' of https://github.com/credebl/studio into feat…
sanjay-k1910 896401d
refactor: test deployment
sanjay-k1910 f2a7b69
refactor: create cred-def payload
sanjay-k1910 fe01030
Merge branch 'develop' of https://github.com/credebl/studio into feat…
sanjay-k1910 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,88 @@ | ||
import { Button, Modal } from 'flowbite-react'; | ||
|
||
interface IProps { | ||
openModal: boolean; | ||
closeModal: (flag: boolean) => void; | ||
onSuccess: (flag: boolean) => void; | ||
message: string | ||
isProcessing: boolean | ||
} | ||
|
||
const ConfirmModal = (props: IProps) => { | ||
return ( | ||
<Modal show={props.openModal} size="md"> | ||
<div className="relative w-full max-w-md max-h-full"> | ||
<div className="relative bg-white rounded-lg shadow dark:bg-gray-700"> | ||
<button | ||
type="button" | ||
className="absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ml-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" | ||
data-modal-hide="popup-modal" | ||
onClick={() => { | ||
props.closeModal(false) | ||
}} | ||
> | ||
<svg | ||
className="w-3 h-3" | ||
aria-hidden="true" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 14 14" | ||
> | ||
<path | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={2} | ||
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6" | ||
/> | ||
</svg> | ||
<span className="sr-only">Close modal</span> | ||
</button> | ||
<div className="p-6 text-center"> | ||
<svg | ||
className="mx-auto mb-4 text-yellow-300 w-12 h-12 dark:text-gray-200" | ||
aria-hidden="true" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 20 20" | ||
> | ||
<path | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={2} | ||
d="M10 11V6m0 8h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" | ||
/> | ||
</svg> | ||
<h3 className="mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"> | ||
{props.message} | ||
</h3> | ||
<button | ||
data-modal-hide="popup-modal" | ||
type="button" | ||
className="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600" | ||
onClick={() => { | ||
props.closeModal(false) | ||
}} | ||
> | ||
No, cancel | ||
</button> | ||
<Button | ||
type="submit" | ||
isProcessing={props.isProcessing} | ||
disabled={props.isProcessing} | ||
onClick={() => { | ||
props.onSuccess(true) | ||
}} | ||
className="text-base bg-primary-700 hover:!bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 sm:w-auto dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800 font-medium rounded-lg text-sm inline-flex items-center text-center ml-2" | ||
> | ||
Yes, I'm sure | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default ConfirmModal; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you please be specific for the model name
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.
This is a custom confirmation popup and we can use it anywhere in our code.
Can you please suggest a better name?