Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
fix: spell
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Aug 15, 2024
1 parent e3bf9e6 commit 5dd33be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect } from "react";
import { useSocketRefStore } from "../store";
import type { ActionSchema, HitSchema, PointerSchema } from "../type/shooting";

export const useSocketReciever = () => {
export const useSocketReceiver = () => {
const socketRef = useSocketRefStore((state) => state.socketRef);

const onMessage = (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/shooter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DefaultButton } from "../../components/ui/Button";
import { Modal } from "../../components/ui/Modal";
import { ShooterButton } from "../../components/ui/ShooterButton";
import { useOrientation } from "../../hooks/useOrientation";
import { useSocketReciever } from "../../hooks/useSocketReciever";
import { useSocketReceiver } from "../../hooks/useSocketReceiver";
import { useSocketRefStore, useUUIDStore } from "../../store";
import { type Schema, event_type, message_type } from "../../type/schema";
import { MessageType } from "../../type/shooting";
Expand All @@ -18,7 +18,7 @@ const Shooter = () => {
const [isOpen, setIsOpen] = useState(true);
const [score, setScore] = useState<number>(0);
const { orientationDiff } = useOrientation();
const { onMessage } = useSocketReciever();
const { onMessage } = useSocketReceiver();
const socketRef = useSocketRefStore((state) => state.socketRef);

const initialImages = [
Expand Down
8 changes: 4 additions & 4 deletions src/pages/yatai/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import type {
Object3DEventMap,
} from "three";
import { randFloat } from "three/src/math/MathUtils.js";
import { useSocketReciever } from "../../hooks/useSocketReciever";
import { useSocketRefStore } from "../../store";
import { useSocketReceiver } from "../../hooks/useSocketReceiver";

import {
type ActionSchema,
MessageType,
Expand Down Expand Up @@ -50,7 +50,7 @@ const YataiStage = memo(() => {

// 的
const Target = (props: ThreeElements["mesh"]) => {
const { onMessage } = useSocketReciever();
const { onMessage } = useSocketReceiver();
const position = props.position as [number, number, number];

const args: [number, number, number] = [0.7, 2, 0.7];
Expand Down Expand Up @@ -148,7 +148,7 @@ const YataiStage = memo(() => {
});

const TargetOverlay = () => {
const { onMessage } = useSocketReciever();
const { onMessage } = useSocketReceiver();

useEffect(() => {
onMessage((data) => {
Expand Down

0 comments on commit 5dd33be

Please sign in to comment.