feat(web): add knowledge entry editor page (KNOW-006)
This commit is contained in:
@@ -10,7 +10,7 @@ interface EntryEditorProps {
|
||||
/**
|
||||
* EntryEditor - Markdown editor with live preview
|
||||
*/
|
||||
export function EntryEditor({ content, onChange }: EntryEditorProps): JSX.Element {
|
||||
export function EntryEditor({ content, onChange }: EntryEditorProps) {
|
||||
const [showPreview, setShowPreview] = useState(false);
|
||||
|
||||
return (
|
||||
|
||||
@@ -29,7 +29,7 @@ export function EntryMetadata({
|
||||
onStatusChange,
|
||||
onVisibilityChange,
|
||||
onTagsChange,
|
||||
}: EntryMetadataProps): JSX.Element {
|
||||
}: EntryMetadataProps) {
|
||||
const handleTagToggle = (tagId: string): void => {
|
||||
if (selectedTags.includes(tagId)) {
|
||||
onTagsChange(selectedTags.filter((id) => id !== tagId));
|
||||
|
||||
@@ -10,7 +10,7 @@ interface EntryViewerProps {
|
||||
/**
|
||||
* EntryViewer - Displays rendered markdown content
|
||||
*/
|
||||
export function EntryViewer({ entry }: EntryViewerProps): JSX.Element {
|
||||
export function EntryViewer({ entry }: EntryViewerProps) {
|
||||
return (
|
||||
<div className="entry-viewer">
|
||||
<div className="entry-content">
|
||||
|
||||
7
apps/web/src/components/knowledge/index.ts
Normal file
7
apps/web/src/components/knowledge/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Knowledge module components
|
||||
*/
|
||||
|
||||
export { EntryViewer } from "./EntryViewer";
|
||||
export { EntryEditor } from "./EntryEditor";
|
||||
export { EntryMetadata } from "./EntryMetadata";
|
||||
Reference in New Issue
Block a user