= ({
/>
- setIsFlashcardModeOpen(true)}
- >
-
-
-
-
void
- isFlashcardModeOpen: boolean
- setIsFlashcardModeOpen: (flashcardOpen: boolean) => void
- initialFileToCreateFlashcard: string
- setInitialFileToCreateFlashcard: (flashcardName: string) => void
- initialFileToReviewFlashcard: string
- setInitialFileToReviewFlashcard: (flashcardName: string) => void
}
const ModalContext = createContext(undefined)
@@ -30,36 +21,13 @@ export const useModalOpeners = (): ModalOpenContextType => {
export const ModalProvider: React.FC = ({ children }) => {
const [isSettingsModalOpen, setIsSettingsModalOpen] = useState(false)
- const [isFlashcardModeOpen, setIsFlashcardModeOpen] = useState(false)
- const [initialFileToCreateFlashcard, setInitialFileToCreateFlashcard] = useState('')
- const [initialFileToReviewFlashcard, setInitialFileToReviewFlashcard] = useState('')
-
- useEffect(() => {
- const createFlashcardFileListener = window.ipcRenderer.receive(
- 'create-flashcard-file-listener',
- (noteName: string) => {
- setIsFlashcardModeOpen(!!noteName)
- setInitialFileToCreateFlashcard(noteName)
- },
- )
-
- return () => {
- createFlashcardFileListener()
- }
- }, [setIsFlashcardModeOpen, setInitialFileToCreateFlashcard])
const modalOpenContextValue = useMemo(
() => ({
isSettingsModalOpen,
setIsSettingsModalOpen,
- isFlashcardModeOpen,
- setIsFlashcardModeOpen,
- initialFileToCreateFlashcard,
- setInitialFileToCreateFlashcard,
- initialFileToReviewFlashcard,
- setInitialFileToReviewFlashcard,
}),
- [isSettingsModalOpen, isFlashcardModeOpen, initialFileToReviewFlashcard, initialFileToCreateFlashcard],
+ [isSettingsModalOpen],
)
return {children}
diff --git a/src/lib/welcome-note.ts b/src/lib/welcome-note.ts
index 40ea4494..720adfaf 100644
--- a/src/lib/welcome-note.ts
+++ b/src/lib/welcome-note.ts
@@ -30,14 +30,6 @@ Some features you should be aware of:
- You can also create inline links by surrounding text with two square brackets (like in Obsidian). [[Like this]]
-- **AI Flashcards:**
-
- - Generate flashcards from any note by going to the chat window and hitting the toggle in the bottom right to "Flashcard Ask" mode.
-
- - Then generate flashcards by running a prompt like "Generate flashcards for this note"
-
- - Then hit the flashcard icon in the left sidebar to see your flashcards :)
-
You can import notes from other apps by adding markdown files to your vault directory. Note that Reor will only read markdown files.
Please join our [Discord community](https://discord.gg/QBhGUFJYuH) to ask questions, give feedback, and get help. We're excited to have you on board!`