@@ -7,6 +7,7 @@ import Button from 'app/components/buttons/Button';
7
7
8
8
import modalActionCreators from 'app/store/modal/actions' ;
9
9
import Alert from 'app/components/Alert' ;
10
+ import Relative from 'app/components/Relative' ;
10
11
11
12
import WorkspaceInputContainer from '../WorkspaceInputContainer' ;
12
13
@@ -24,6 +25,12 @@ const PrivacySelect = styled.select`
24
25
box-sizing: border-box;
25
26
` ;
26
27
28
+ const PatronMessage = styled . div `
29
+ margin: 0.5rem 1rem;
30
+ color: rgba(255, 255, 255, 0.6);
31
+ font-size: 0.875rem;
32
+ ` ;
33
+
27
34
const mapDispatchToProps = dispatch => ( {
28
35
modalActions : bindActionCreators ( modalActionCreators , dispatch ) ,
29
36
} ) ;
@@ -83,21 +90,25 @@ class SandboxSettings extends React.PureComponent {
83
90
const { isPatron, privacy } = this . props ;
84
91
return (
85
92
< div >
93
+ < WorkspaceSubtitle > Sandbox Privacy</ WorkspaceSubtitle >
94
+ { ! isPatron && (
95
+ < PatronMessage >
96
+ Private and unlisted Sandboxes are available as a{ ' ' }
97
+ < a href = "/patron" target = "_blank" >
98
+ Patron
99
+ </ a > .
100
+ </ PatronMessage >
101
+ ) }
86
102
{ isPatron && (
87
- < div >
88
- < WorkspaceSubtitle > Sandbox Privacy</ WorkspaceSubtitle >
89
- < WorkspaceInputContainer >
90
- < PrivacySelect
91
- value = { privacy }
92
- onChange = { this . updateSandboxPrivacy }
93
- >
94
- < option value = { 0 } > Public</ option >
95
- < option value = { 1 } > Unlisted (only findable with url)</ option >
96
- < option value = { 2 } > Private</ option >
97
- </ PrivacySelect >
98
- </ WorkspaceInputContainer >
99
- </ div >
103
+ < WorkspaceInputContainer >
104
+ < PrivacySelect value = { privacy } onChange = { this . updateSandboxPrivacy } >
105
+ < option value = { 0 } > Public</ option >
106
+ < option value = { 1 } > Unlisted (only findable with url)</ option >
107
+ < option value = { 2 } > Private</ option >
108
+ </ PrivacySelect >
109
+ </ WorkspaceInputContainer >
100
110
) }
111
+
101
112
< WorkspaceSubtitle > Delete Sandbox</ WorkspaceSubtitle >
102
113
< WorkspaceInputContainer >
103
114
< Button
0 commit comments