From 3321db8f9c549103ebae46bf025a3135208a2e3b Mon Sep 17 00:00:00 2001 From: realtradam Date: Fri, 17 May 2024 22:16:00 -0400 Subject: uploading images to games and also iframes for games --- app/javascript/components/Game.jsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/javascript/components/Game.jsx (limited to 'app/javascript/components/Game.jsx') diff --git a/app/javascript/components/Game.jsx b/app/javascript/components/Game.jsx new file mode 100644 index 0000000..8b80b8e --- /dev/null +++ b/app/javascript/components/Game.jsx @@ -0,0 +1,23 @@ +import React, { useState, useEffect } from "react"; +import { useParams } from "react-router-dom"; +//import { Link } from "react-router-dom"; +import GameCard from "./GameCard"; +import Button from "./Button"; + +//} /> + +//export default () => ( +export default function Games () { + let { user, game } = useParams(); +//http://localhost:3000/api/v1/game/realtradam/orc-arena-of-time/index.html + return( + <> +
+
+
Orc: Arena of Time
+ +
+
+ + ); +}; -- cgit v1.2.3