Skip to content

Commit

Permalink
add placeholders to buttons to fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Dec 11, 2023
1 parent d3b895f commit ba19680
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const ChatWithLLM: React.FC = () => {
<Button
className="bg-slate-700 border-none h-10 hover:bg-slate-900 cursor-pointer w-[80px] text-center pt-0 pb-0 pr-2 pl-2"
onClick={handleSubmitNewMessage}
placeholder=""
>
Ask
</Button>
Expand Down
2 changes: 2 additions & 0 deletions src/components/File/MilkdownEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ReactEditor, useEditor } from "@milkdown/react";
import { commonmark } from "@milkdown/preset-commonmark";
import { nord } from "@milkdown/theme-nord";
import { gfm } from "@milkdown/preset-gfm";
import { menu } from "@milkdown/plugin-menu";

// import "@milkdown/theme-nord/style.css";
// import { MarkdownEditorProps } from "./MarkdownEditor";
Expand All @@ -16,6 +17,7 @@ export const MilkdownEditor: React.FC = () => {
.use(nord)
.use(commonmark)
// .use(gfm)
.use(menu)
.config((ctx) => {
ctx.set(rootCtx, root);
})
Expand Down
4 changes: 2 additions & 2 deletions src/components/File/MilkdownSecondTry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ const MarkdownEditor: React.FC<MarkdownEditorProps> = ({
)
.use(nord)
.use(commonmark)
// .use(gfm)
.use(gfm)
.use(history)
.use(listener)
.use(prism)
// .use(menu)
.use(menu)
.use(block)
.use(cursor)
.use(clipboard)
Expand Down
1 change: 1 addition & 0 deletions src/components/File/NewNote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const NewNoteComponent: React.FC<NewNoteComponentProps> = ({
<Button
className="bg-slate-700 mt-3 mb-2 border-none h-10 hover:bg-slate-900 cursor-pointer w-[80px] text-center pt-0 pb-0 pr-2 pl-2"
onClick={sendNewNoteMsg}
placeholder=""
>
Create
</Button>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Settings/InitialSettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const DirectoryPicker: React.FC<Props> = ({ onDirectorySelected }) => {
<Button
className="bg-slate-700 mt-2 border-none h-10 hover:bg-slate-900 cursor-pointer w-[140px] text-center pt-0 pb-0 pr-2 pl-2"
onClick={handleDirectorySelection}
placeholder=""
>
Select Directory
</Button>
Expand Down Expand Up @@ -117,6 +118,7 @@ const DirectoryPicker: React.FC<Props> = ({ onDirectorySelected }) => {
<Button
className="bg-slate-700 mt-6 border-none h-10 hover:bg-slate-900 cursor-pointer w-[80px] text-center pt-0 pb-0 pr-2 pl-2"
onClick={handleNext}
placeholder=""
>
Next
</Button>
Expand Down
1 change: 1 addition & 0 deletions src/components/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const SettingsModal: React.FC<ModalProps> = ({ isOpen, onClose }) => {
<Button
className="bg-slate-700 mt-4 border-none h-10 hover:bg-slate-900 cursor-pointer w-[80px] text-center pt-0 pb-0 pr-2 pl-2"
onClick={handleSave}
placeholder=""
>
Save
</Button>
Expand Down

0 comments on commit ba19680

Please sign in to comment.