aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes/matches/index.svelte
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-08-20 19:55:21 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-08-20 19:55:21 +0200
commit71d37e758fbc155a14f13989e7ed05e7719c2159 (patch)
tree2780090e1dd784d7a3bfe9e221d87b0df69ef436 /web/pw-server/src/routes/matches/index.svelte
parent329fc73b94852697f7a057957a714d961a2e9e3b (diff)
downloadplanetwars.dev-71d37e758fbc155a14f13989e7ed05e7719c2159.tar.xz
planetwars.dev-71d37e758fbc155a14f13989e7ed05e7719c2159.zip
implement LinkButton component
Diffstat (limited to 'web/pw-server/src/routes/matches/index.svelte')
-rw-r--r--web/pw-server/src/routes/matches/index.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/pw-server/src/routes/matches/index.svelte b/web/pw-server/src/routes/matches/index.svelte
index a2e352c..8c106fa 100644
--- a/web/pw-server/src/routes/matches/index.svelte
+++ b/web/pw-server/src/routes/matches/index.svelte
@@ -49,6 +49,7 @@
</script>
<script lang="ts">
+ import LinkButton from "$lib/components/LinkButton.svelte";
import MatchList from "$lib/components/matches/MatchList.svelte";
export let matches: object[];
@@ -100,8 +101,8 @@
<MatchList {matches} />
<div class="page-controls">
<div class="btn-group">
- <a class="btn btn-page-prev" href={newerMatchesLink(matches)}>newer</a>
- <a class="btn btn-page-next" href={olderMatchesLink(matches)}>older</a>
+ <LinkButton href={newerMatchesLink(matches)}>Newer</LinkButton>
+ <LinkButton href={olderMatchesLink(matches)}>Older</LinkButton>
</div>
</div>
</div>