forked from zhongyidian/food-add-edu
refactor: 横屏提示与缩放改为组件标签(OrientationGuard)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
a98b1d383e
commit
ce9567d1da
12 files changed
+50
-70
No files matched your search
@@ -5,8 +5,8 @@ import { Button } from "@/components/ui/button";
|
||||
import { Overlay, type OverlayProps } from "@/components/ui/overlay";
|
||||
import { Portal } from "@/components/ui/portal";
|
||||
import { useToast } from "@/components/ui/toast";
|
||||
import { useCourseCanvas } from "@/course-runtime/canvas";
|
||||
import { useSpotlightStore } from "@/stores";
|
||||
import { useScale } from "@/utils";
|
||||
import { DragDropDemo } from "./DragDropDemo";
|
||||
|
||||
type OverlayDemoKey =
|
||||
@@ -113,7 +113,7 @@ export default function Components() {
|
||||
? customRootRef
|
||||
: getAppPortalRoot;
|
||||
const toast = useToast();
|
||||
const scale = useScale();
|
||||
const { scale } = useCourseCanvas();
|
||||
|
||||
const startGuideSpotlight = () => {
|
||||
useSpotlightStore.getState().startSpotlight({
|
||||
|
||||
Reference in new issue
Block a user