-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export to EPUB improvements + bug fixes #670
Conversation
src/hooks/useBoolean.ts
Outdated
@@ -1,14 +1,14 @@ | |||
import { Dispatch, SetStateAction, useCallback, useState } from 'react'; | |||
|
|||
interface ReturnType { | |||
export interface booleanHookType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export interface booleanHookType { | |
export interface BooleanHookType { |
epubUseCustomCSS = false, | ||
epubUseCustomJS = false, | ||
} = useSettings(); | ||
const saveConfig = dispatchConfig ? true : epubLocation === ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const saveConfig = dispatchConfig ? true : epubLocation === ''; | |
const saveConfig = dispatchConfig || epubLocation === ''; |
@@ -35,6 +35,7 @@ const CustomFileModal: React.FC<CustomCSSModalProps> = ({ | |||
), | |||
placeholder = '', | |||
}) => { | |||
const [text, setText] = useState(customFile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I missed this PR before. I have fixed the TextInput's behaviour in 14ed97b so this fix shouldn't be needed anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, but I can't change anything for a week now since I'm on holiday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed your version and added mine, because your version didn't support the "Not saved" text and couldn't show the file text after opening from file.
Export to EPUB
Bugfixes
PS.: I have no idea what happend to package-lock.json