impr: remove dead code
This commit is contained in:
7 files changed
+13
-108
No files matched your search
@@ -186,7 +186,7 @@
|
||||
style={row < 7 ? `--anim-delay: ${row * 50}ms` : ''}
|
||||
class={[
|
||||
'relative post-container px-3 sm:px-6',
|
||||
row < 7 && 'pop-in opacity-0',
|
||||
row < 9 && 'pop-in opacity-0',
|
||||
]}
|
||||
>
|
||||
<Post
|
||||
@@ -219,12 +219,7 @@
|
||||
<Icon src={ExclamationTriangle} size="24" solid></Icon>
|
||||
</div>
|
||||
<pre class="py-0.5">{error}</pre>
|
||||
<Button
|
||||
color="primary"
|
||||
{loading}
|
||||
disabled={loading}
|
||||
onclick={() => loadMore()}
|
||||
>
|
||||
<Button color="primary" {loading} onclick={loadMore}>
|
||||
{$t('message.retry')}
|
||||
</Button>
|
||||
</div>
|
||||
@@ -256,14 +251,7 @@
|
||||
</EndPlaceholder>
|
||||
</div>
|
||||
{/if}
|
||||
<InfiniteScroll
|
||||
window
|
||||
threshold={600}
|
||||
on:loadMore={() => {
|
||||
console.log('loadMore triggered')
|
||||
loadMore()
|
||||
}}
|
||||
/>
|
||||
<InfiniteScroll window threshold={600} on:loadMore={loadMore} />
|
||||
{/if}
|
||||
{@render children?.()}
|
||||
</ul>
|
||||
|
||||
Reference in new issue
Block a user