From 025e12976d5c0661d742cf951e3296e727fed83a Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Sat, 18 Jan 2025 13:59:56 +1030 Subject: [PATCH] feat: integrate MarkdownEditor component and update ProfileGeneralTab for enhanced description input --- .../components/profile/ProfileGeneralTab.jsx | 18 +- frontend/src/components/ui/MarkdownEditor.jsx | 157 ++++++++++++++++++ frontend/src/components/ui/TextArea.jsx | 29 ++-- 3 files changed, 179 insertions(+), 25 deletions(-) create mode 100644 frontend/src/components/ui/MarkdownEditor.jsx diff --git a/frontend/src/components/profile/ProfileGeneralTab.jsx b/frontend/src/components/profile/ProfileGeneralTab.jsx index 17f84fc..c0b60dc 100644 --- a/frontend/src/components/profile/ProfileGeneralTab.jsx +++ b/frontend/src/components/profile/ProfileGeneralTab.jsx @@ -1,6 +1,6 @@ import React, {useState} from 'react'; import PropTypes from 'prop-types'; -import Textarea from '../ui/TextArea'; +import MarkdownEditor from '@ui/MarkdownEditor'; const ProfileGeneralTab = ({ name, @@ -39,7 +39,7 @@ const ProfileGeneralTab = ({

)} -
+
@@ -94,20 +94,14 @@ const ProfileGeneralTab = ({

Add any notes or details about this profile's - purpose and configuration + purpose and configuration. Use markdown to format + your description.

-