-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add indexing error modal * fix ts error
- Loading branch information
1 parent
4439510
commit 39e71e9
Showing
4 changed files
with
63 additions
and
6 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
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,43 @@ | ||
import React from 'react'; | ||
import { Modal, ModalBody, ModalContent, ModalHeader } from '@nextui-org/modal'; | ||
import { CircleAlert } from 'lucide-react'; | ||
|
||
interface IndexingErrorModalProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
const IndexingErrorModal: React.FC<IndexingErrorModalProps> = ({ isOpen, onClose }) => { | ||
return ( | ||
<Modal | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
placement="center" | ||
className="bg-background" | ||
size="sm" | ||
backdrop="opaque" | ||
> | ||
<ModalContent className=""> | ||
<ModalHeader className="flex items-center gap-2 text-[1.125rem] text-foreground"> | ||
<CircleAlert /> | ||
Indexing Service Error | ||
</ModalHeader> | ||
<ModalBody> | ||
<div className="pb-4 font-normal text-foreground"> | ||
Indexing service error, please report it at{' '} | ||
<a | ||
href="https://github.com/darwinia-network/collator-staking-ui-v2/issues/new" | ||
target="_blank" | ||
rel="noreferrer" | ||
className="text-primary" | ||
> | ||
https://github.com/darwinia-network/collator-staking-ui-v2/issues/new | ||
</a> | ||
</div> | ||
</ModalBody> | ||
</ModalContent> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default IndexingErrorModal; |
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