generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 4
ORV2-4305 - FE: Update: Amend, Void Fee Summary Table #2048
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
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b109b8f
create AmendOrVoidFeeSummary component and replace regular FeeSummary…
glen-aot d342cf4
Merge branch 'main' into ORV2-4305
glen-aot c9c7c52
update AmendOrVoidFeeSummary parent className
glen-aot 93d2a49
Merge remote-tracking branch 'origin' into ORV2-4305
glen-aot 3246d16
PR review changes
glen-aot 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
44 changes: 44 additions & 0 deletions
44
frontend/src/features/permits/components/amendOrVoidFeeSummary/AmendOrVoidFeeSummary.scss
This file contains hidden or 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,44 @@ | ||
| @import "../../../../themes/orbcStyles"; | ||
|
|
||
| .amend-or-void-fee-summary { | ||
| display: flex; | ||
| flex-direction: column; | ||
| background-color: $banner-grey; | ||
| color: $bc-primary-blue; | ||
| padding: 1.5rem; | ||
| margin-top: 1.5rem; | ||
| border-radius: 0.25rem; | ||
|
|
||
| &__title { | ||
| font-weight: bold; | ||
| font-size: 1.5rem; | ||
| padding-bottom: 1.5rem; | ||
| } | ||
|
|
||
| &__table { | ||
| display: flex; | ||
| flex-direction: column; | ||
|
|
||
| .table-row { | ||
| display: flex; | ||
| flex-direction: row; | ||
| justify-content: space-between; | ||
| font-size: 1rem; | ||
| padding: 1rem 0; | ||
|
|
||
| &--header { | ||
| font-weight: bold; | ||
| padding: 0 0 1rem 0; | ||
| border-bottom: 1px solid $bc-fee-summary-line-separator; | ||
| } | ||
|
|
||
| &--total { | ||
| border-top: 1px solid $bc-fee-summary-line-separator; | ||
| border-bottom: none; | ||
| font-weight: bold; | ||
| font-size: 1.5rem; | ||
| padding: 1.5rem 0 0 0; | ||
| } | ||
| } | ||
| } | ||
| } |
45 changes: 45 additions & 0 deletions
45
frontend/src/features/permits/components/amendOrVoidFeeSummary/AmendOrVoidFeeSummary.tsx
This file contains hidden or 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,45 @@ | ||
| import "./AmendOrVoidFeeSummary.scss"; | ||
| import { feeSummaryDisplayText } from "../../helpers/feeSummary"; | ||
|
|
||
| export const AmendOrVoidFeeSummary = ({ | ||
| currentPermitValue, | ||
| newPermitValue, | ||
| amountToRefund, | ||
| }: { | ||
| currentPermitValue: string; | ||
| newPermitValue: string; | ||
| amountToRefund: string; | ||
| }) => { | ||
| currentPermitValue = feeSummaryDisplayText(currentPermitValue); | ||
| amountToRefund = feeSummaryDisplayText(amountToRefund); | ||
| newPermitValue = feeSummaryDisplayText(newPermitValue); | ||
|
|
||
| return ( | ||
| <div className="amend-or-void-fee-summary"> | ||
| <div className="amend-or-void-fee-summary__title">Fee Summary</div> | ||
| <div className="amend-or-void-fee-summary__table"> | ||
| <div className="table-row table-row--header"> | ||
| <div className="table-row__th">Description</div> | ||
| <div className="table-row__th">Amount</div> | ||
| </div> | ||
|
|
||
| <div className="table-row"> | ||
| <div className="table-row__td">Current Permit Value</div> | ||
|
|
||
| <div className="table-row__td">{currentPermitValue}</div> | ||
| </div> | ||
|
|
||
| <div className="table-row"> | ||
| <div className="table-row__td">New Permit Value</div> | ||
|
|
||
| <div className="table-row__td">{newPermitValue}</div> | ||
| </div> | ||
|
|
||
| <div className="table-row table-row--total"> | ||
| <div className="table-row__tf">Total (CAD)</div> | ||
| <div className="table-row__tf">{amountToRefund}</div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.