X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3d4f1fd8ce62ed2cd35af23231062a95b70c500b..62f757227d45f1bbd338a0e27b22b8deb69f68b2:/src/views-components/sharing-dialog/sharing-public-access-form-component.tsx diff --git a/src/views-components/sharing-dialog/sharing-public-access-form-component.tsx b/src/views-components/sharing-dialog/sharing-public-access-form-component.tsx index bcee8dce..5fc3f4e3 100644 --- a/src/views-components/sharing-dialog/sharing-public-access-form-component.tsx +++ b/src/views-components/sharing-dialog/sharing-public-access-form-component.tsx @@ -3,7 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; -import { Grid, StyleRulesCallback, Divider, Typography } from '@material-ui/core'; +import { Grid, StyleRulesCallback, Typography } from '@material-ui/core'; import { Field, WrappedFieldProps } from 'redux-form'; import { WithStyles } from '@material-ui/core/styles'; import withStyles from '@material-ui/core/styles/withStyles'; @@ -13,6 +13,9 @@ import { VisibilityLevel } from 'store/sharing-dialog/sharing-dialog-types'; const sharingPublicAccessStyles: StyleRulesCallback<'root'> = theme => ({ root: { padding: `${theme.spacing.unit * 2}px 0`, + }, + heading: { + fontSize: '1.25rem', } }); @@ -23,9 +26,9 @@ interface AccessProps { } const SharingPublicAccessForm = withStyles(sharingPublicAccessStyles)( - ({ classes, visibility, includePublic, onSave }: WithStyles<'root'> & AccessProps) => + ({ classes, visibility, includePublic, onSave }: WithStyles<'root' | 'heading'> & AccessProps) => <> - + General access @@ -42,13 +45,13 @@ const SharingPublicAccessForm = withStyles(sharingPublicAccessStyles)( const renderVisibilityInfo = (visibility: VisibilityLevel) => { switch (visibility) { case VisibilityLevel.PUBLIC: - return 'Anyone on the Internet can access'; + return 'Shared with anyone on the Internet'; case VisibilityLevel.ALL_USERS: - return 'All users on this cluster can access'; + return 'Shared with all users on this cluster'; case VisibilityLevel.SHARED: - return 'Specific people can access'; + return 'Shared with specific people'; case VisibilityLevel.PRIVATE: - return 'Only you can access'; + return 'Not shared'; default: return ''; }