-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(portal navigation): handle navigation as per status (#482)
- Loading branch information
1 parent
1df2f29
commit b37ed83
Showing
8 changed files
with
157 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,6 +148,10 @@ | |
"helpText": "If you have any questions regarding your registration please contact our helpdesk:", | ||
"email": "[email protected]" | ||
}, | ||
"registrationDeclined": { | ||
"title": "Registration Status", | ||
"description": "<strong>After careful consideration, we regret to inform you that we are unable to approve your registration at this time.</strong><br /><br />Details/reasons for the cancellation have been provided via email.Your account will get disabled soon." | ||
}, | ||
"admin": { | ||
"registration-requests": { | ||
"columns": { | ||
|
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 |
---|---|---|
|
@@ -147,6 +147,10 @@ | |
"helpText": "If you have any questions regarding your registration please contact our helpdesk:", | ||
"email": "[email protected]" | ||
}, | ||
"registrationDeclined": { | ||
"title": "Registration Status", | ||
"description": "<strong style='color: red'>After careful consideration, we regret to inform you that we are unable to approve your registration at this time.</strong><br /><br />Details/reasons for the cancellation have been provided via email.Your account will get disabled soon." | ||
}, | ||
"admin": { | ||
"registration-requests": { | ||
"columns": { | ||
|
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
73 changes: 73 additions & 0 deletions
73
src/components/shared/frame/Header/RegistrationDeclinedOverlay/index.tsx
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,73 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2021, 2024 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
|
||
import { Trans, useTranslation } from 'react-i18next' | ||
import { | ||
Dialog, | ||
DialogContent, | ||
DialogHeader, | ||
DialogActions, | ||
Typography, | ||
} from '@catena-x/portal-shared-components' | ||
|
||
export type StatusTagIcon = { | ||
type?: 'confirmed' | 'pending' | 'declined' | 'label' | ||
} | ||
|
||
export type RegistrationDeclinedProps = { | ||
openDialog: boolean | ||
handleOverlayClose: React.MouseEventHandler | ||
} | ||
|
||
const RegistrationDeclinedOverlay = ({ | ||
openDialog, | ||
handleOverlayClose, | ||
}: RegistrationDeclinedProps) => { | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<Dialog | ||
open={openDialog} | ||
additionalModalRootStyles={{ | ||
width: '50%', | ||
}} | ||
> | ||
<DialogHeader title={t('content.registrationDeclined.title')} /> | ||
<DialogContent | ||
sx={{ | ||
padding: '0 120px', | ||
marginBottom: 5, | ||
}} | ||
> | ||
<div className="registration-review"> | ||
<Trans> | ||
<Typography variant="body2"> | ||
{t('content.registrationDeclined.description')} | ||
</Typography> | ||
</Trans> | ||
</div> | ||
</DialogContent> | ||
<DialogActions | ||
helperText={t('content.registrationInreview.helperText')} | ||
></DialogActions> | ||
</Dialog> | ||
) | ||
} | ||
|
||
export default RegistrationDeclinedOverlay |
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