Skip to content

Commit c25dded

Browse files
committed
refactor(qna): remove unused mark-as text
1 parent 5fbbf6d commit c25dded

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

templates/dashboard/discussions/qna-card.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -348,19 +348,3 @@ class="tutor-popover-menu-item tutor-gap-5 tutor-sm-border-t"
348348
<?php endif; ?>
349349

350350
</div>
351-
<?php if ( $is_user_asker ) : ?>
352-
<div x-show="editingId === <?php echo (int) $question_id; ?>" x-cloak class="tutor-card tutor-surface-l1-hover">
353-
<?php
354-
tutor_load_template(
355-
'dashboard.discussions.qna-form',
356-
array(
357-
'form_id' => 'qna-edit-' . (int) $question_id,
358-
'default_value' => $question->comment_content,
359-
'submit_handler' => '(data) => updateQnAMutation?.mutate({ ...data, question_id: ' . (int) $question->comment_ID . ' })',
360-
'cancel_handler' => 'setEditing(null)',
361-
'is_pending' => 'updateQnAMutation?.isPending',
362-
)
363-
);
364-
?>
365-
</div>
366-
<?php endif; ?>

0 commit comments

Comments
 (0)