feat(miniprogram): enable sharing on all pages
This commit is contained in:
@@ -7,6 +7,7 @@ import { loadCurrentChildBindingContext, Binding } from '@/services/binding'
|
||||
import { Child } from '@/services/child'
|
||||
import { DeviceStatus, getDeviceStatus, setDeviceSleepSchedule } from '@/services/device'
|
||||
import { useSystemBanner } from '@/components/system-banner/use-system-banner'
|
||||
import { usePageShare } from '@/utils/page-share'
|
||||
import './index.scss'
|
||||
|
||||
function formatSleepRange(status: DeviceStatus | null): string {
|
||||
@@ -28,6 +29,7 @@ function formatUpdatedAt(value?: string | null): string {
|
||||
}
|
||||
|
||||
export default function SleepSchedule() {
|
||||
usePageShare()
|
||||
const systemBanner = useSystemBanner()
|
||||
const [isLoading, setIsLoading] = useState(true)
|
||||
const [isSaving, setIsSaving] = useState(false)
|
||||
|
||||
Reference in New Issue
Block a user