| | |
| | | import React, { useState, useRef, useEffect, useMemo } from "react"; |
| | | import Player from "../../map/player"; |
| | | |
| | | let player; |
| | | import { |
| | | Edit, |
| | | SimpleForm, |
| | | FormDataConsumer, |
| | | useTranslate, |
| | | TextInput, |
| | | NumberInput, |
| | | BooleanInput, |
| | | SaveButton, |
| | | SelectInput, |
| | | Toolbar, |
| | | Labeled, |
| | | NumberField, |
| | | required, |
| | | useRecordContext, |
| | | DeleteButton, |
| | | } from 'react-admin'; |
| | | import { useWatch, useFormContext } from "react-hook-form"; |
| | | import { Stack, Grid, Box, Typography, Card, CardContent } from '@mui/material'; |
| | | import * as Common from '@/utils/common'; |
| | | import { } from '@/config/setting'; |
| | | |
| | | const Settings = () => { |
| | | const mapRef = React.useRef(); |
| | | |
| | | |
| | | useEffect(() => { |
| | | player = new Player(mapRef.current) |
| | | }, []) |
| | | |
| | | return ( |
| | | <> |
| | | <h1>Settings</h1> |
| | | <div ref={mapRef} ></div> |
| | | <Card> |
| | | <CardContent> |
| | | |
| | | </CardContent> |
| | | </Card> |
| | | </> |
| | | ) |
| | | } |