From adcd272700f64e461bf0304534c9191dbe65dd2a Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Tue, 13 Sep 2022 14:04:41 +0500 Subject: [PATCH] fix: added insertlink icon (#285) Co-authored-by: adeel.tajamul --- src/components/icons/InsertLink.jsx | 20 ++++++++++++++++++++ src/components/icons/index.js | 1 + src/discussions/utils.js | 3 ++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/components/icons/InsertLink.jsx diff --git a/src/components/icons/InsertLink.jsx b/src/components/icons/InsertLink.jsx new file mode 100644 index 00000000..90b53b58 --- /dev/null +++ b/src/components/icons/InsertLink.jsx @@ -0,0 +1,20 @@ +import React from 'react'; + +export default function InsertLink() { + return ( + + + + ); +} diff --git a/src/components/icons/index.js b/src/components/icons/index.js index dbe72c0f..2b082154 100644 --- a/src/components/icons/index.js +++ b/src/components/icons/index.js @@ -1,3 +1,4 @@ +export { default as InsertLink } from './InsertLink'; export { default as Issue } from './Issue'; export { default as People } from './People'; export { default as PushPin } from './PushPin'; diff --git a/src/discussions/utils.js b/src/discussions/utils.js index 4616674b..21712846 100644 --- a/src/discussions/utils.js +++ b/src/discussions/utils.js @@ -5,9 +5,10 @@ import { generatePath, useRouteMatch } from 'react-router'; import { getConfig } from '@edx/frontend-platform'; import { - Delete, Edit, InsertLink, Pin, QuestionAnswer, Report, VerifiedBadge, + Delete, Edit, Pin, QuestionAnswer, Report, VerifiedBadge, } from '@edx/paragon/icons'; +import { InsertLink } from '../components/icons'; import { ContentActions, Routes, ThreadType } from '../data/constants'; import messages from './messages';