Quellcode durchsuchen

add reply button

visuddhinanda vor 2 Jahren
Ursprung
Commit
5b450298f0
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12 0
      dashboard/src/components/discussion/DiscussionShow.tsx

+ 12 - 0
dashboard/src/components/discussion/DiscussionShow.tsx

@@ -234,6 +234,18 @@ const DiscussionShowWidget = ({
               </>
             ) : undefined}
           </span>
+          <Button
+            type="text"
+            onClick={() => {
+              if (typeof onReply !== "undefined") {
+                onReply();
+              }
+            }}
+          >
+            {intl.formatMessage({
+              id: "buttons.reply",
+            })}
+          </Button>
           <Dropdown
             menu={{ items, onClick }}
             placement="bottomRight"