Skip to content

Commit

Permalink
BAH-4138 | Show Validation rules while creating custom ABHA Address (#98
Browse files Browse the repository at this point in the history
)
  • Loading branch information
devsingh05298 authored Dec 20, 2024
1 parent 5d25cf6 commit 06109a8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/components/creation/CreateABHAAddress.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ const CreateABHAAddress = (props) => {
Create
</button>
</div>
<div>
<p className="validation-rule">
Abha Address should contain : <br />
1. Minimum 8 characters. <br />
2. Maximum 18 characters. <br />
3. Special characters allowed 1 dot (.) and/or 1 underscore (_). <br />
4. Special character dot and underscore should be in between. <br/>
5. Special characters cannot be in the beginning or at the end.<br />
6. Alphanumeric - only numbers, only letters or any combination of numbers and letters is allowed.
</p>
</div>
{loader && <Spinner />}
{error !== "" && <h6 className="error">{error}</h6>}
<Footer setBack={props.setBack} />
Expand Down
4 changes: 2 additions & 2 deletions src/components/creation/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const Footer = (props) => {
setBack(true);
}
return (
<div className={props.setProceed !== undefined ? 'footer no-right-margin' : 'footer no-left-margin'}>
{props.setBack !== undefined && <div className="left-button">
<div className={props.setProceed !== undefined ? 'footer no-right-margin' : 'footer no-left-margin'} >
{props.setBack !== undefined && <div className={props.setProceed !== undefined ? 'left-button' : 'center' }>
<button type="button" className="back" onClick={goBack}>Back</button>
</div>}
{props.setProceed !== undefined && <div className="right-button">
Expand Down
5 changes: 5 additions & 0 deletions src/components/creation/creation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ button:disabled {
margin-top: 10px;
}

.validation-rule {
font-size: smaller;
font-style: italic;
}

.note {
text-align: center;
font-size: medium;
Expand Down

0 comments on commit 06109a8

Please sign in to comment.