Skip to content

Commit

Permalink
Fix - clean
Browse files Browse the repository at this point in the history
  • Loading branch information
PzYon committed Jul 13, 2024
1 parent 392667d commit 41f0d71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions app/src/components/details/scraps/ScrapContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,12 @@ export const ScrapContextProvider: React.FC<{
};

function toList(genericNotes: string[]) {
debugger;
return JSON.stringify(
genericNotes.map((n) => ({ label: n }) as IScrapListItem),
);
}

function toMarkdown(genericNotes: string[]) {
debugger;
return genericNotes.map((n) => "- " + n).join("\n");
}

Expand Down
2 changes: 2 additions & 0 deletions app/src/components/details/scraps/list/ScrapList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export const ScrapList: React.FC = () => {

const sensors = useSensors(useSensor(TouchSensor), useSensor(PointerSensor));

console.log(listItemCollection.items);

return (
<ScrapBody actions={[]} editModeActions={getEditModeActions()}>
<BodyHost
Expand Down
12 changes: 1 addition & 11 deletions app/src/components/details/scraps/markdown/LazyMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useMemo } from "react";
import { styled } from "@mui/material";
import { IMarkdownProps } from "./Markdown";
import { getMarkdownInstance } from "./getMarkdownInstance";
import { getRawRowValues } from "./getRawRowValues";

const md = getMarkdownInstance();

Expand All @@ -27,16 +26,7 @@ const LazyMarkdown: React.FC<IMarkdownProps> = ({

const El = useBasic ? BasicContentContainer : ContentContainer;

return (
<>
<El onClick={onClick} dangerouslySetInnerHTML={{ __html: html }} />
<ul>
{getRawRowValues(value).map((v, i) => (
<li key={i}>{v}</li>
))}
</ul>
</>
);
return <El onClick={onClick} dangerouslySetInnerHTML={{ __html: html }} />;
};

const BaseContentContainer = styled("div")`
Expand Down

0 comments on commit 41f0d71

Please sign in to comment.