File tree 5 files changed +7
-6
lines changed
5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export default function EditGoal({
97
97
label = "Goal description"
98
98
rows = { 5 }
99
99
placeholder = "I will code for atleast 2 hours everyday."
100
- helpText = "Basic markdown is supported."
100
+ helpText = "[ Basic Markdown](/ markdown) is supported."
101
101
hasError = { Boolean ( errors . description ) }
102
102
errorMessage = "Something went wrong!!!"
103
103
onKeyDown = { async ( e ) => {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default function NewComment({ updateId }: { updateId: string }) {
77
77
placeholder = "Give suggestions or ask questions related to the update."
78
78
hasError = { Boolean ( errors . description ) }
79
79
errorMessage = "Comment is required!!!"
80
- helpText = "Basic markdown is supported."
80
+ helpText = "[ Basic Markdown](/ markdown) is supported."
81
81
onKeyDown = { ( e ) => {
82
82
if ( e . code === 'Enter' && ( e . metaKey || e . ctrlKey ) ) {
83
83
handleSubmit ( onSubmit ) ( )
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default function NewGoal() {
85
85
label = "Goal description"
86
86
rows = { 3 }
87
87
placeholder = "I will code for atleast 2 hours everyday."
88
- helpText = "Basic markdown is supported."
88
+ helpText = "[ Basic Markdown](/ markdown) is supported."
89
89
hasError = { Boolean ( errors . description ) }
90
90
errorMessage = "Something went wrong!!!"
91
91
onKeyDown = { async ( e ) => {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export default function NewUpdate({
90
90
placeholder = "What did you do today to move towards your goal?"
91
91
hasError = { Boolean ( errors . description ) }
92
92
errorMessage = "Update is required!!!"
93
- helpText = "Basic markdown is supported."
93
+ helpText = "[ Basic Markdown](/ markdown) is supported."
94
94
onKeyDown = { ( e ) => {
95
95
if ( e . code === 'Enter' && ( e . metaKey || e . ctrlKey ) ) {
96
96
handleSubmit ( onSubmit ) ( )
Original file line number Diff line number Diff line change 1
1
import * as React from 'react'
2
2
import classNames from 'classnames'
3
+ import Markdown from 'src/components/Markdown'
3
4
4
5
export type TextAreaProps = {
5
6
label ?: string
@@ -74,12 +75,12 @@ const TextArea = React.forwardRef(
74
75
{ help && (
75
76
< p
76
77
className = { classNames (
77
- 'mt-2 text-sm' ,
78
+ 'mt-2 text-sm prose prose-sm ' ,
78
79
hasError ? ' text-red-600' : ' text-gray-500'
79
80
) }
80
81
id = { `${ id } -${ hasError ? 'error' : 'description' } ` }
81
82
>
82
- { help }
83
+ < Markdown > { help } </ Markdown >
83
84
</ p >
84
85
) }
85
86
</ div >
You can’t perform that action at this time.
0 commit comments