Skip to content

Commit

Permalink
fix: list button style
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr committed Dec 30, 2023
1 parent 9086758 commit 3ac6e2c
Showing 1 changed file with 5 additions and 14 deletions.
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 @@ export const ListFooter: React.FC<SectionFooterButtonPropsBase> = ({
}) => {
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'}>
{isLoading ? 'Loading...' : `Load more ${label}`}
</Button>
);
Expand Down

1 comment on commit 3ac6e2c

@vercel
Copy link

@vercel vercel bot commented on 3ac6e2c Dec 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.