Commit 8fb6c2d 1 parent d6bafe8 commit 8fb6c2d Copy full SHA for 8fb6c2d
File tree 4 files changed +25
-13
lines changed
4 files changed +25
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @linode/manager " : Fixed
3
+ ---
4
+
5
+ Misplaced helper text and static copy in Linode Create Volume drawer ([ #9683 ] ( https://github.com/linode/manager/pull/9683 ) )
Original file line number Diff line number Diff line change @@ -281,9 +281,9 @@ const CreateVolumeForm: React.FC<CombinedProps> = (props) => {
281
281
>
282
282
{ dcSpecificPricing ? (
283
283
< span >
284
- A single Volume can range from 10 to 10240 GB in size. Up
285
- to eight Volumes can be attached to a single Linode.
286
- Select a region to see cost per GB.
284
+ A single Volume can range from 10 to { MAX_VOLUME_SIZE } GB
285
+ in size. Up to to eight Volumes can be attached to a
286
+ single Linode. Select a region to see cost per GB.
287
287
</ span >
288
288
) : (
289
289
< span >
Original file line number Diff line number Diff line change @@ -197,9 +197,18 @@ const CreateVolumeForm: React.FC<CombinedProps> = (props) => {
197
197
data-qa-volume-size-help
198
198
variant = "body1"
199
199
>
200
- A single Volume can range from 10 to { MAX_VOLUME_SIZE } gigabytes
201
- in size and costs $0.10/GB per month. Up to eight volumes can be
202
- attached to a single Linode.
200
+ { flags . dcSpecificPricing ? (
201
+ < span >
202
+ A single Volume can range from 10 to { MAX_VOLUME_SIZE } GB in
203
+ size. Up to eight Volumes can be attached to a single Linode.
204
+ </ span >
205
+ ) : (
206
+ < span >
207
+ A single Volume can range from 10 to { MAX_VOLUME_SIZE } GB in
208
+ size and costs $0.10/GB per month. < br />
209
+ Up to eight volumes can be attached to a single Linode.
210
+ </ span >
211
+ ) }
203
212
</ Typography >
204
213
205
214
< LabelField
Original file line number Diff line number Diff line change @@ -77,17 +77,15 @@ const SizeField: React.FC<CombinedProps> = (props) => {
77
77
size : value ,
78
78
} ) ;
79
79
80
- const legacyHelperText = (
80
+ const priceDisplayText = (
81
81
< FormHelperText >
82
- { resize || isFromLinode ? (
83
- 'The size of the new volume in GB.'
84
- ) : (
82
+ { resize || isFromLinode ? null : (
85
83
< span className = { classes . createVolumeText } > ${ price } /month</ span >
86
84
) }
87
85
</ FormHelperText >
88
86
) ;
89
87
90
- const dynamicPricingHelperText = ! resize && (
88
+ const dynamicPricingHelperText = ! resize && ! isFromLinode && (
91
89
< Box marginLeft = { '10px' } marginTop = { '4px' } >
92
90
< Typography > Select a region to see cost per month.</ Typography >
93
91
</ Box >
@@ -115,9 +113,9 @@ const SizeField: React.FC<CombinedProps> = (props) => {
115
113
< div className = { classes . priceDisplay } >
116
114
{ dcSpecificPricing
117
115
? hasSelectedRegion
118
- ? legacyHelperText
116
+ ? priceDisplayText
119
117
: dynamicPricingHelperText
120
- : legacyHelperText }
118
+ : priceDisplayText }
121
119
</ div >
122
120
</ >
123
121
) ;
You can’t perform that action at this time.
0 commit comments