Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: list button style #1400

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions src/common/components/ListFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,16 @@
}) => {
if (href) {
return (
<ExplorerLink href={href} width={'full'} mt={'auto'} variant={'secondary'}>
View all recent {label} <Icon as={HiMiniArrowUpRight} width={'16px'} height={'16px'} />
<ExplorerLink href={href} mt={'auto'}>
<Button variant={'secondary'} width={'full'}>
View all recent {label} <Icon as={HiMiniArrowUpRight} width={'16px'} height={'16px'} />
</Button>
</ExplorerLink>
);
}
if (fetchNextPage && hasNextPage) {
return (
<Button
onClick={() => fetchNextPage()}
width={'full'}
bg={'bg'}
color={'text'}
fontWeight={'medium'}
border={'1px'}
mt={'auto'}
_hover={{
bg: 'buttonHoverBg',
}}
>
<Button variant={'secondary'} onClick={() => fetchNextPage()} width={'full'}>

Check warning on line 36 in src/common/components/ListFooter.tsx

View check run for this annotation

Codecov / codecov/patch

src/common/components/ListFooter.tsx#L36

Added line #L36 was not covered by tests
{isLoading ? 'Loading...' : `Load more ${label}`}
</Button>
);
Expand Down
Loading