|
|
|
@ -88,35 +88,40 @@ export default function CommentsForm({
|
|
|
|
|
onSubmit={handleSubmit(onSubmit)}>
|
|
|
|
|
<div className="mt-4 space-y-4">
|
|
|
|
|
<TextArea
|
|
|
|
|
{...(register('general'), {})}
|
|
|
|
|
{...register('general')}
|
|
|
|
|
disabled={reviewCreateMutation.isLoading}
|
|
|
|
|
label="General"
|
|
|
|
|
placeholder="General comments about the resume"
|
|
|
|
|
onChange={(value) => onValueChange('general', value)}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<TextArea
|
|
|
|
|
{...(register('education'), {})}
|
|
|
|
|
{...register('education')}
|
|
|
|
|
disabled={reviewCreateMutation.isLoading}
|
|
|
|
|
label="Education"
|
|
|
|
|
placeholder="Comments about the Education section"
|
|
|
|
|
onChange={(value) => onValueChange('education', value)}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<TextArea
|
|
|
|
|
{...(register('experience'), {})}
|
|
|
|
|
{...register('experience')}
|
|
|
|
|
disabled={reviewCreateMutation.isLoading}
|
|
|
|
|
label="Experience"
|
|
|
|
|
placeholder="Comments about the Experience section"
|
|
|
|
|
onChange={(value) => onValueChange('experience', value)}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<TextArea
|
|
|
|
|
{...(register('projects'), {})}
|
|
|
|
|
{...register('projects')}
|
|
|
|
|
disabled={reviewCreateMutation.isLoading}
|
|
|
|
|
label="Projects"
|
|
|
|
|
placeholder="Comments about the Projects section"
|
|
|
|
|
onChange={(value) => onValueChange('projects', value)}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<TextArea
|
|
|
|
|
{...(register('skills'), {})}
|
|
|
|
|
{...register('skills')}
|
|
|
|
|
disabled={reviewCreateMutation.isLoading}
|
|
|
|
|
label="Skills"
|
|
|
|
|
placeholder="Comments about the Skills section"
|
|
|
|
|
onChange={(value) => onValueChange('skills', value)}
|
|
|
|
@ -125,6 +130,7 @@ export default function CommentsForm({
|
|
|
|
|
|
|
|
|
|
<div className="flex justify-end space-x-2 pt-4">
|
|
|
|
|
<Button
|
|
|
|
|
disabled={reviewCreateMutation.isLoading}
|
|
|
|
|
label="Cancel"
|
|
|
|
|
type="button"
|
|
|
|
|
variant="tertiary"
|
|
|
|
@ -132,7 +138,8 @@ export default function CommentsForm({
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
disabled={!isDirty}
|
|
|
|
|
disabled={!isDirty || reviewCreateMutation.isLoading}
|
|
|
|
|
isLoading={reviewCreateMutation.isLoading}
|
|
|
|
|
label="Submit"
|
|
|
|
|
type="submit"
|
|
|
|
|
variant="primary"
|
|
|
|
|