-
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.
Added reusable thank you message component
- Loading branch information
Vincent Ho
authored and
Vincent Ho
committed
Nov 15, 2024
1 parent
508902c
commit e5d92ed
Showing
6 changed files
with
37 additions
and
46 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
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,13 @@ | ||
.thank-you-message { | ||
text-align: center; | ||
width: 100%; | ||
i { | ||
color: var(--peterportal-secondary-green); | ||
} | ||
h1 { | ||
margin: 15px 0; | ||
} | ||
p { | ||
font-size: 1.25rem; | ||
} | ||
} |
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,19 @@ | ||
import React from 'react'; | ||
import { Icon } from 'semantic-ui-react'; | ||
import './ThankYouMessage.scss'; | ||
|
||
interface ThankYouMessageProps { | ||
message: string; | ||
} | ||
|
||
const ThankYouMessage: React.FC<ThankYouMessageProps> = ({ message }) => { | ||
return ( | ||
<div className="thank-you-message"> | ||
<Icon name="check circle" size="huge" /> | ||
<h1>Thank You</h1> | ||
<p>{message}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ThankYouMessage; |