From 9608610b0fef717c8f2d87ab518a077f4e0763cb Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 9 Nov 2025 20:33:00 -0800 Subject: admin: implement user deletion --- frontend/src/components/GameManager.tsx | 113 -------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 frontend/src/components/GameManager.tsx (limited to 'frontend/src/components/GameManager.tsx') diff --git a/frontend/src/components/GameManager.tsx b/frontend/src/components/GameManager.tsx deleted file mode 100644 index 66782de..0000000 --- a/frontend/src/components/GameManager.tsx +++ /dev/null @@ -1,113 +0,0 @@ -import { useState } from 'react'; - -interface GameFormData { - gameInternalName: string; - gameFormattedName: string; - gameDescription: string; -} - -interface GameManagerProps { - onGameSubmit: (formData: GameFormData) => Promise; - isSubmitting: boolean; -} - -const GameManager = ({ onGameSubmit, isSubmitting }: GameManagerProps) => { - const [formData, setFormData] = useState({ - gameInternalName: '', - gameFormattedName: '', - gameDescription: '' - }); - - const handleInputChange = (e: React.ChangeEvent) => { - const { name, value } = e.target; - setFormData(prev => ({ - ...prev, - [name]: value - })); - }; - - const handleSubmit = async (e: React.FormEvent) => { - e.preventDefault(); - - if (!formData.gameInternalName || !formData.gameFormattedName || !formData.gameDescription) { - alert('Please fill in all fields'); - return; - } - - await onGameSubmit(formData); - - // Reset form after successful submission - setFormData({ - gameInternalName: '', - gameFormattedName: '', - gameDescription: '' - }); - }; - - return ( - <> -

- This form allows you to add a new game to Mirage. By default, Mirage will attempt to derive a method of showing the game's score on its own. - You may override this behavior by writing your own custom score display logic. -

-
-
- - -
-
- - -
-
- - -
-
- -
-
- - ); -}; - -export default GameManager; \ No newline at end of file -- cgit v1.2.3