@@ -7,7 +7,6 @@ import { ErrorMessage, Field, Form, Formik, FormikProps } from "formik";
7
7
import withSubscription , { ISubscriptionProps } from "components/Shared/withSubscription" ;
8
8
import UserSearchField from "components/Shared/UserSearchField" ;
9
9
import TagsSelector from "components/Proposal/Create/SchemeForms/TagsSelector" ;
10
- import TrainingTooltip from "components/Shared/TrainingTooltip" ;
11
10
import Analytics from "lib/analytics" ;
12
11
import { baseTokenName , supportedTokens , toBaseUnit , tokenDetails , toWei , isValidUrl , isAddress , getArcByDAOAddress , getNetworkByDAOAddress } from "lib/util" ;
13
12
import { showNotification , NotificationStatus } from "@store/notifications/notifications.reducer" ;
@@ -107,8 +106,6 @@ class CreateContributionReward extends React.Component<IProps, IStateProps> {
107
106
} ;
108
107
}
109
108
110
- private fnDescription = ( < span > Short description of the proposal.< ul > < li > What are you proposing to do?</ li > < li > Why is it important?</ li > < li > How much will it cost the DAO?</ li > < li > When do you plan to deliver the work?</ li > </ ul > </ span > ) ;
111
-
112
109
public handleSubmit = async ( values : IFormValues , { setSubmitting } : any ) : Promise < void > => {
113
110
if ( ! await enableWalletProvider ( { showNotification : this . props . showNotification } , getNetworkByDAOAddress ( this . props . daoAvatarAddress ) ) ) { return ; }
114
111
@@ -234,13 +231,11 @@ class CreateContributionReward extends React.Component<IProps, IStateProps> {
234
231
} : FormikProps < IFormValues > ) =>
235
232
< Form noValidate >
236
233
< div className = { css . description } > This proposal can send eth / erc20 token, mint new DAO tokens ({ dao . tokenSymbol } ) and mint / slash reputation in the DAO. Each proposal can have one of each of these actions. e.g. 100 rep for completing a project + 0.05 ETH for covering expenses.</ div >
237
- < TrainingTooltip overlay = "The title is the header of the proposal card and will be the first visible information about your proposal" placement = "right" >
238
- < label htmlFor = "titleInput" >
239
- < div className = { css . requiredMarker } > *</ div >
234
+ < label htmlFor = "titleInput" >
235
+ < div className = { css . requiredMarker } > *</ div >
240
236
Title
241
- < ErrorMessage name = "title" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
242
- </ label >
243
- </ TrainingTooltip >
237
+ < ErrorMessage name = "title" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
238
+ </ label >
244
239
< Field
245
240
autoFocus
246
241
id = "titleInput"
@@ -250,16 +245,13 @@ class CreateContributionReward extends React.Component<IProps, IStateProps> {
250
245
type = "text"
251
246
className = { touched . title && errors . title ? css . error : null }
252
247
/>
253
-
254
- < TrainingTooltip overlay = { this . fnDescription } placement = "right" >
255
- < label htmlFor = "descriptionInput" >
256
- < div className = { css . proposalDescriptionLabelText } >
257
- < div className = { css . requiredMarker } > *</ div >
258
- < div className = { css . body } > Description</ div > < HelpButton text = { HelpButton . helpTextProposalDescription } />
259
- </ div >
260
- < ErrorMessage name = "description" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
261
- </ label >
262
- </ TrainingTooltip >
248
+ < label htmlFor = "descriptionInput" >
249
+ < div className = { css . proposalDescriptionLabelText } >
250
+ < div className = { css . requiredMarker } > *</ div >
251
+ < div className = { css . body } > Description</ div > < HelpButton text = { HelpButton . helpTextProposalDescription } />
252
+ </ div >
253
+ < ErrorMessage name = "description" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
254
+ </ label >
263
255
< Field
264
256
component = { MarkdownField }
265
257
onChange = { ( value : any ) => { setFieldValue ( "description" , value ) ; } }
@@ -268,23 +260,15 @@ class CreateContributionReward extends React.Component<IProps, IStateProps> {
268
260
name = "description"
269
261
className = { touched . description && errors . description ? css . error : null }
270
262
/>
271
-
272
- < TrainingTooltip overlay = "Add some tags to give context about your proposal e.g. idea, signal, bounty, research, etc" placement = "right" >
273
- < label className = { css . tagSelectorLabel } >
274
- Tags
275
- </ label >
276
- </ TrainingTooltip >
277
-
263
+ < label className = { css . tagSelectorLabel } > Tags</ label >
278
264
< div className = { css . tagSelectorContainer } >
279
265
< TagsSelector onChange = { this . onTagsChange ( ) } tags = { this . state . tags } arc = { getArcByDAOAddress ( dao . address ) } > </ TagsSelector >
280
266
</ div >
281
267
282
- < TrainingTooltip overlay = "Link to the fully detailed description of your proposal" placement = "right" >
283
- < label htmlFor = "urlInput" >
268
+ < label htmlFor = "urlInput" >
284
269
URL
285
- < ErrorMessage name = "url" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
286
- </ label >
287
- </ TrainingTooltip >
270
+ < ErrorMessage name = "url" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
271
+ </ label >
288
272
< Field
289
273
id = "urlInput"
290
274
maxLength = { 120 }
@@ -295,12 +279,11 @@ class CreateContributionReward extends React.Component<IProps, IStateProps> {
295
279
/>
296
280
297
281
< div >
298
- < TrainingTooltip overlay = "Ethereum Address or Alchemy Username to receive rewards, if not you" placement = "right" >
299
- < label htmlFor = "beneficiary" >
300
- Recipient, if not you
301
- < ErrorMessage name = "beneficiary" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
302
- </ label >
303
- </ TrainingTooltip >
282
+ < label htmlFor = "beneficiary" >
283
+ Recipient, if not you
284
+ < ErrorMessage name = "beneficiary" > { ( msg : string ) => < span className = { css . errorMessage } > { msg } </ span > } </ ErrorMessage >
285
+ </ label >
286
+
304
287
< UserSearchField
305
288
daoAvatarAddress = { daoAvatarAddress }
306
289
name = "beneficiary"
@@ -395,19 +378,11 @@ class CreateContributionReward extends React.Component<IProps, IStateProps> {
395
378
}
396
379
</ div >
397
380
< div className = { css . createProposalActions } >
398
- < TrainingTooltip overlay = "Export proposal" placement = "top" >
399
- < button id = "export-proposal" className = { css . exportProposal } type = "button" onClick = { ( ) => this . exportFormValues ( values ) } >
400
- < img src = "/assets/images/Icon/share-blue.svg" />
401
- </ button >
402
- </ TrainingTooltip >
403
- < button className = { css . exitProposalCreation } type = "button" onClick = { handleClose } >
404
- Cancel
381
+ < button id = "export-proposal" className = { css . exportProposal } type = "button" onClick = { ( ) => this . exportFormValues ( values ) } >
382
+ < img src = "/assets/images/Icon/share-blue.svg" />
405
383
</ button >
406
- < TrainingTooltip overlay = "Once the proposal is submitted it cannot be edited or deleted" placement = "top" >
407
- < button className = { css . submitProposal } type = "submit" disabled = { isSubmitting } >
408
- Submit proposal
409
- </ button >
410
- </ TrainingTooltip >
384
+ < button className = { css . exitProposalCreation } type = "button" onClick = { handleClose } > Cancel</ button >
385
+ < button className = { css . submitProposal } type = "submit" disabled = { isSubmitting } > Submit proposal</ button >
411
386
</ div >
412
387
</ Form >
413
388
}
0 commit comments