Skip to content

Commit

Permalink
add user table header to owner modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Granigan committed May 25, 2020
1 parent 80d887b commit bf4e207
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/components/OverviewPage/ProgramControlsLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const OwnerAccordionLinks = ({ programme }) => {
}

return (
<div style={{ margin: '2em 0em', padding: '1em' }}>
<div style={{ margin: '2em 0em' }}>
<div style={{ fontWeight: 'bold', marginLeft: '3em' }}>
<h2>{translations.readAccess[languageCode]}</h2>
{translations.viewPrompt[languageCode]}
Expand Down
12 changes: 9 additions & 3 deletions client/components/OverviewPage/ProgramControlsUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ const translations = {
en: 'No users, use the links above to invite',
se: 'Inga användare. Använd ovanstående länkar för att bjuda in användare.',
},
userList: {
fi: 'Käyttäjät',
en: 'Users',
se: '',
},
}

const SwitchableBadge = ({ cyTag, currentAccess, grant, remove, disabled = false }) => {
Expand Down Expand Up @@ -141,8 +146,9 @@ const OwnerAccordionUsers = ({ programme }) => {
}, 0)

return (
<>
<Segment style={{ margin: '1em 3em' }}>
<div style={{ margin: '3em'}}>
<h2>{translations.userList[languageCode]}</h2>
<Segment style={{ margin: '1em 0' }}>
<Grid celled="internally">
<Grid.Row>
<Grid.Column width={3} style={{ textAlign: 'center' }}>
Expand Down Expand Up @@ -179,7 +185,7 @@ const OwnerAccordionUsers = ({ programme }) => {
)}
</Grid>
</Segment>
</>
</div>
)
}

Expand Down

0 comments on commit bf4e207

Please sign in to comment.