Skip to content
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

Framework7 & other stuff #4

Merged
merged 25 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
f7 ok
  • Loading branch information
damienmauchamp committed Apr 4, 2024
commit 8f00bd40057446d71bf337a88dce2f2db5a17224
22 changes: 11 additions & 11 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
'use client'
// import F7ReleasesPage from '@/src/components/Pages/F7/F7ReleasePage'
import { useEffect } from 'react'

//
// F7
import 'framework7/css/bundle'
import Framework7 from 'framework7/lite'
import Framework7 from '@/src/framework7-custom'
import Framework7React, { App, View, Views, f7ready } from 'framework7-react'
Framework7.use(Framework7React)

//
import F7ReleasePage from '@/src/components/Pages/F7/F7ReleasePage'
import { useEffect } from 'react'

// routes
// import routes from '@/src/routes'
import routes from './routes'
import F7ReleasePage from '@/src/components/Pages/F7/F7ReleasePage'

//
const f7params = {
Expand All @@ -34,13 +35,12 @@ const F7HomePage = () => {
useEffect(() => {
f7ready((f7) => {
// setReady(true)

console.log('HOME f7 ready', f7)

document
.querySelector('.navbars.navbar-hidden')
?.classList.remove('navbar-hidden')
f7.setColorTheme('#ff2d55')
})

document
.querySelector('.navbars.navbar-hidden')
?.classList.remove('navbar-hidden')
}, [])

// const SplashScreenOverlay = () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const useAuth = ({ middleware }: MiddlewareType = {}): AuthType => {
}

const authLoading = () => {
console.log('xxx', {
console.log('authLoading', {
isLoading: isLoading,
user: user,
hasTestToken: hasTestToken,
Expand Down
Loading