2023-01-30 16:17:58 -05:00
|
|
|
<script>
|
2023-02-12 01:53:13 -05:00
|
|
|
import PostList from '$lib/components/PostList.svelte';
|
2023-03-07 18:53:56 -05:00
|
|
|
import Button from '$lib/components/Button.svelte';
|
|
|
|
import {setLocation} from '$lib/util.js';
|
2023-02-01 19:22:43 -05:00
|
|
|
|
|
|
|
/** @type {import('./$types').PageData} */
|
|
|
|
export let data;
|
2023-01-30 16:17:58 -05:00
|
|
|
</script>
|
|
|
|
|
2023-03-07 18:53:56 -05:00
|
|
|
<p>
|
|
|
|
<Button clickFunc={() => { window.location.search = setLocation(window.location,'type',('all')) }}>All users</Button>
|
2023-03-07 18:56:18 -05:00
|
|
|
<Button clickFunc={() => { window.location.search = setLocation(window.location,'type',('follow')) }}>Following only</Button>
|
2023-03-07 18:53:56 -05:00
|
|
|
</p>
|
|
|
|
|
2023-03-07 18:56:18 -05:00
|
|
|
<PostList data={data} />
|