Add useFrameViewport hook; apply desktop mode to DirectorsForecast
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e02e558e81
commit
3a8661127a
2 changed files with 24 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { useCallback, useEffect, useState } from 'react'
|
||||
import { useFrameViewport } from '../hooks/useFrameViewport'
|
||||
import { Save, RefreshCw, Camera, Trash2, Printer, Repeat2 } from 'lucide-react'
|
||||
import { useAuth } from '../components/AuthGate'
|
||||
import { dfGetWorksheet, dfSaveWorksheet, dfGetReport, dfSaveSnapshot, dfDeleteSnapshot } from '../api'
|
||||
|
|
@ -486,6 +487,7 @@ function ReportTab({ year, month }: { year: number; month: number }) {
|
|||
type Tab = 'worksheet' | 'report'
|
||||
|
||||
export default function DirectorsForecast() {
|
||||
useFrameViewport('desktop')
|
||||
const now = new Date()
|
||||
const [year, setYear] = useState(now.getFullYear())
|
||||
const [month, setMonth] = useState(now.getMonth() + 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue