fixxxxxxxx
This commit is contained in:
@@ -5,6 +5,7 @@ import Link from "next/link";
|
||||
import { usePlaceDetails } from "@/hooks/roblox/usePlaceDetails";
|
||||
import { RobloxVerifiedSmall } from "@/components/roblox/RobloxTooltips";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useGameLaunch } from "@/components/providers/GameLaunchProvider";
|
||||
|
||||
interface GamePageContentProps {
|
||||
placeId: string;
|
||||
@@ -12,11 +13,12 @@ interface GamePageContentProps {
|
||||
|
||||
export default function GamePageContent({ placeId }: GamePageContentProps) {
|
||||
const game = usePlaceDetails(placeId);
|
||||
const { launchGame } = useGameLaunch();
|
||||
|
||||
// Set dynamic document title
|
||||
useEffect(() => {
|
||||
if (!!game) {
|
||||
document.title = `${game.name} | ocbwoy3-chan's roblox`;
|
||||
document.title = `${game.name} | Roblox`;
|
||||
}
|
||||
}, [game]);
|
||||
|
||||
@@ -24,7 +26,7 @@ export default function GamePageContent({ placeId }: GamePageContentProps) {
|
||||
|
||||
return (
|
||||
<div className="p-4 space-y-6">
|
||||
<Button onClick={a=>open(`roblox://placeId=${game.rootPlaceId}`)}>
|
||||
<Button onClick={() => launchGame(game.rootPlaceId.toString())}>
|
||||
PLAY
|
||||
</Button>
|
||||
<div className="break-all pl-4 whitespace-pre-line font-black text-2xl">
|
||||
|
||||
Reference in New Issue
Block a user