diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index fd16bb2..a706b55 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -1,10 +1,10 @@ import { useEffect, useState } from "react"; +import { useNavigate } from "react-router-dom"; import { DefaultButton } from "../../components/ui/Button"; import { useSocketRefStore } from "../../store"; import { device } from "../../utils/device"; import { requestPermission } from "../../utils/permission"; import styles from "./index.module.css"; -import { useNavigate } from "react-router-dom"; function Home() { const navigate = useNavigate(); diff --git a/src/type/schema.ts b/src/type/schema.ts index 52fcd9d..9c08724 100644 --- a/src/type/schema.ts +++ b/src/type/schema.ts @@ -1,37 +1,37 @@ export interface Schema { - id: string; - interval: number; - angle: angle; - acceleration: acceleration; - distance: distance; - message_type: message_type; - event_type: event_type; + id: string; + interval: number; + angle: angle; + acceleration: acceleration; + distance: distance; + message_type: message_type; + event_type: event_type; } interface angle { - x: number; - y: number; + x: number; + y: number; } interface acceleration { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } interface distance { - x: number; - y: number; - z: number; + x: number; + y: number; + z: number; } export enum message_type { - pointer = "pointer", - action = "action", + pointer = "pointer", + action = "action", } export enum event_type { - shooter = "shooter", - ringToss = "ring_toss", - fireFlower = "fire_flower", -} \ No newline at end of file + shooter = "shooter", + ringToss = "ring_toss", + fireFlower = "fire_flower", +}