-
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.
Merge pull request #541 from IABTechLab/ans-UID2-3992-better-ux-when-…
…no-participant-access Better ux when user does not have access to a participant
- Loading branch information
Showing
5 changed files
with
63 additions
and
8 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
30 changes: 30 additions & 0 deletions
30
src/web/components/Navigation/NoParticipantAccessView.scss
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,30 @@ | ||
.no-participant-access-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 4.5rem 6.5rem; | ||
font-size: 1rem; | ||
background-color: var(--theme-background-content); | ||
height: 100vh; | ||
|
||
.instructions { | ||
font-size: 1.25rem; | ||
margin-top: 0; | ||
color: var(--theme-secondary); | ||
} | ||
|
||
.no-access-text { | ||
font-weight: bold; | ||
margin-bottom: 0.25rem; | ||
} | ||
|
||
.use-switcher-text { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.switcher { | ||
width: fit-content; | ||
border: 2px solid gray; | ||
padding-top: 1rem; | ||
} | ||
} |
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,17 @@ | ||
import { ParticipantSwitcher } from './ParticipantSwitcher'; | ||
|
||
import './NoParticipantAccessView.scss'; | ||
|
||
export function NoParticipantAccessView() { | ||
return ( | ||
<div className='no-participant-access-container'> | ||
<p className='no-access-text instructions'>You do not have access to this participant.</p> | ||
<p className='use-switcher-text instructions'> | ||
Use the dropdown below to navigate to a participant you have access to. | ||
</p> | ||
<div className='switcher'> | ||
<ParticipantSwitcher noInitialValue /> | ||
</div> | ||
</div> | ||
); | ||
} |
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