From 7b331d15c5c4191a211f0137659e7b975e98efe8 Mon Sep 17 00:00:00 2001 From: Matt Hova Date: Tue, 5 Mar 2024 09:14:09 -0800 Subject: [PATCH] Rename page --- examples/iframe-playground/packages/client/src/App.tsx | 10 +++++----- .../pages/{Instance.tsx => ActivityParticipants.tsx} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename examples/iframe-playground/packages/client/src/pages/{Instance.tsx => ActivityParticipants.tsx} (98%) diff --git a/examples/iframe-playground/packages/client/src/App.tsx b/examples/iframe-playground/packages/client/src/App.tsx index d9561073..22c163d9 100755 --- a/examples/iframe-playground/packages/client/src/App.tsx +++ b/examples/iframe-playground/packages/client/src/App.tsx @@ -29,7 +29,7 @@ import * as S from './AppStyles'; import SafeAreas from './pages/SafeAreas'; import ThermalStates from './pages/ThermalStates'; import ActivityChannel from './pages/ActivityChannel'; -import Instance from './pages/Instance'; +import ActivityParticipants from './pages/ActivityParticipants'; // Add contexts here export default function App(): React.ReactElement { @@ -161,10 +161,10 @@ const routes: Record = { name: 'Window Size Tracker', component: WindowSizeTracker, }, - instance: { - path: '/instance', - name: 'Instance Debug', - component: Instance, + activityParticipants: { + path: '/activity-participants', + name: 'Activity Participants', + component: ActivityParticipants, }, }; diff --git a/examples/iframe-playground/packages/client/src/pages/Instance.tsx b/examples/iframe-playground/packages/client/src/pages/ActivityParticipants.tsx similarity index 98% rename from examples/iframe-playground/packages/client/src/pages/Instance.tsx rename to examples/iframe-playground/packages/client/src/pages/ActivityParticipants.tsx index 838ab746..d10b8b15 100644 --- a/examples/iframe-playground/packages/client/src/pages/Instance.tsx +++ b/examples/iframe-playground/packages/client/src/pages/ActivityParticipants.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import discordSdk from '../discordSdk'; import {EventPayloadData} from '@discord/embedded-app-sdk'; -export default function Instance() { +export default function ActivityParticipants() { const [participants, setParticipants] = React.useState< EventPayloadData<'ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE'>['participants'] >([]);