Skip to content

Commit

Permalink
Rename invite button
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePotatoArchivist committed May 28, 2024
1 parent 0eb62a4 commit f510492
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
import NetworkGame from './NetworkGame.svelte';
import { theme } from './lib/theme';
import Sidebar from './Sidebar.svelte';
import InviteButton from './InviteButton.svelte';
import ConnectionButton from './ConnectionButton.svelte';
import { localBoolean } from './lib/stores/localStore';
const joinId = new URLSearchParams(window.location.search).get('join')
let gameType: 'single' | 'host' | 'client' | undefined = joinId ? 'client' : undefined;
let id = joinId || '';
let inviteDialog: InviteButton | undefined;
let inviteDialog: ConnectionButton | undefined;
let idDialog: IdDialog | undefined;
let connected: boolean = false;
Expand Down Expand Up @@ -71,7 +71,7 @@
{/if}
<Sidebar bind:theme={$themeSetting} bind:highContrast={$highContrast} on:exit={exit}>
{#if gameType !== 'single'}
<InviteButton {id} link={createLink(id)} {connected} host={gameType === 'host'} bind:this={inviteDialog} />
<ConnectionButton {id} link={createLink(id)} {connected} host={gameType === 'host'} bind:this={inviteDialog} />
{/if}
</Sidebar>
</section>
Expand Down
File renamed without changes.

0 comments on commit f510492

Please sign in to comment.