|
|
|
@ -24,7 +24,7 @@ export default class FollowerList extends Component { |
|
|
|
|
|
|
|
|
|
|
|
async getFollowers() { |
|
|
|
async getFollowers() { |
|
|
|
const { currentPage } = this.state; |
|
|
|
const { currentPage } = this.state; |
|
|
|
const limit = 16; |
|
|
|
const limit = 24; |
|
|
|
const offset = currentPage * limit; |
|
|
|
const offset = currentPage * limit; |
|
|
|
const u = `${URL_FOLLOWERS}?offset=${offset}&limit=${limit}`; |
|
|
|
const u = `${URL_FOLLOWERS}?offset=${offset}&limit=${limit}`; |
|
|
|
const response = await fetch(u); |
|
|
|
const response = await fetch(u); |
|
|
|
@ -47,7 +47,7 @@ export default class FollowerList extends Component { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const noFollowersInfo = html`<div>
|
|
|
|
const noFollowersInfo = html`<div class="col-span-4">
|
|
|
|
<p class="mb-5 text-2xl">Be the first to follow this live stream.</p> |
|
|
|
<p class="mb-5 text-2xl">Be the first to follow this live stream.</p> |
|
|
|
<p class="text-md"> |
|
|
|
<p class="text-md"> |
|
|
|
By following this stream you'll get updates when it goes live, receive |
|
|
|
By following this stream you'll get updates when it goes live, receive |
|
|
|
@ -81,7 +81,7 @@ export default class FollowerList extends Component { |
|
|
|
|
|
|
|
|
|
|
|
return html` |
|
|
|
return html` |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div class="flex flex-wrap"> |
|
|
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"> |
|
|
|
${followers.length === 0 && noFollowersInfo} |
|
|
|
${followers.length === 0 && noFollowersInfo} |
|
|
|
${followers.map((follower) => { |
|
|
|
${followers.map((follower) => { |
|
|
|
return html` <${SingleFollower} user=${follower} /> `; |
|
|
|
return html` <${SingleFollower} user=${follower} /> `; |
|
|
|
|