mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Some more logging
This commit is contained in:
parent
6ed28358e6
commit
d1ce129504
2 changed files with 13 additions and 15 deletions
|
|
@ -123,21 +123,16 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
|||
props.highlightOnRelease
|
||||
)
|
||||
// iOS app embed can overide the original margin and line height
|
||||
const [maxWidthPercentageOverride, setMaxWidthPercentageOverride] = useState<
|
||||
number | null
|
||||
>(null)
|
||||
const [lineHeightOverride, setLineHeightOverride] = useState<number | null>(
|
||||
null
|
||||
)
|
||||
const [fontFamilyOverride, setFontFamilyOverride] = useState<string | null>(
|
||||
null
|
||||
)
|
||||
const [highContrastTextOverride, setHighContrastTextOverride] = useState<
|
||||
boolean | undefined
|
||||
>(undefined)
|
||||
const [justifyTextOverride, setJustifyTextOverride] = useState<
|
||||
boolean | undefined
|
||||
>(undefined)
|
||||
const [maxWidthPercentageOverride, setMaxWidthPercentageOverride] =
|
||||
useState<number | null>(null)
|
||||
const [lineHeightOverride, setLineHeightOverride] =
|
||||
useState<number | null>(null)
|
||||
const [fontFamilyOverride, setFontFamilyOverride] =
|
||||
useState<string | null>(null)
|
||||
const [highContrastTextOverride, setHighContrastTextOverride] =
|
||||
useState<boolean | undefined>(undefined)
|
||||
const [justifyTextOverride, setJustifyTextOverride] =
|
||||
useState<boolean | undefined>(undefined)
|
||||
const highlightHref = useRef(
|
||||
window.location.hash ? window.location.hash.split('#')[1] : null
|
||||
)
|
||||
|
|
@ -388,6 +383,8 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
|||
)
|
||||
}, [props.article.recommendations])
|
||||
|
||||
console.log('props.article', props.article)
|
||||
|
||||
return (
|
||||
<>
|
||||
<Box
|
||||
|
|
|
|||
|
|
@ -479,6 +479,7 @@ export default function Reader(): JSX.Element {
|
|||
return <LoadingView />
|
||||
}
|
||||
|
||||
console.log('library item: ', libraryItem)
|
||||
return (
|
||||
<PrimaryLayout
|
||||
pageTestId="home-page-tag"
|
||||
|
|
|
|||
Loading…
Reference in a new issue