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/view more button #308

Merged
merged 3 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Improvements

- [#308](https://github.com/alleslabs/celatone-frontend/pull/308) Adjust view more button to full width and fix empty state layout in contract history
- [#304](https://github.com/alleslabs/celatone-frontend/pull/304) Remove suffix for token card
- [#282](https://github.com/alleslabs/celatone-frontend/pull/282) Change details page top section explorer link to copy link
- [#293](https://github.com/alleslabs/celatone-frontend/pull/293) Add comma separator to pagination and total blocks
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/CustomTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const CustomTab = ({ count, ...restProps }: CustomTabProps) => {
fontWeight="700"
lineHeight="24px"
letterSpacing="0.4px"
variant="ghost"
variant="ghost-gray"
color="text.dark"
mb={0}
sx={{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/button/CustomIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const CustomIconButton = ({
onClick,
}: CustomIconButtonProps) => (
<Button
variant="ghost"
variant="ghost-gray"
size="xs"
px="1"
minWidth="32px"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/modal/UnsupportedTokensModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const UnsupportedTokensModal = ({
}}
>
<Button
variant="ghost"
variant="ghost-gray"
color="text.dark"
mb={1}
fontSize="12px"
Expand Down
10 changes: 7 additions & 3 deletions src/lib/components/table/ViewMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ interface ViewMoreProps {
export const ViewMore = ({ onClick }: ViewMoreProps) => (
<Flex w="full" justifyContent="center" textAlign="center">
<Button
size="sm"
variant="ghost"
size="md"
w="full"
borderRadius="0"
minH="64px"
variant="ghost-gray"
color="text.dark"
rightIcon={<CustomIcon name="chevron-right" boxSize="13px" />}
gap={2}
onClick={() => {
AmpTrack(AmpEvent.USE_VIEW_MORE);
onClick();
}}
>
View More
<CustomIcon name="chevron-right" boxSize="12px" color="text.dark" />
</Button>
</Flex>
);
1 change: 0 additions & 1 deletion src/lib/components/table/codes/MySavedCodesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const MySavedCodesTable = ({
<EmptyState
imageVariant={isSearching ? "not-found" : "empty"}
message={isSearching ? "No matched codes found" : emptyMessage}
withBorder
/>
}
onRowSelect={onRowSelect}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/table/tableComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const TableContainer = chakra(Flex, {
overflowX: "scroll",
flexDir: "column",
w: "full",
pb: 6,
pb: 0,
},
});

Expand Down
4 changes: 2 additions & 2 deletions src/lib/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Footer = () => (
rel="noopener noreferrer"
onClick={() => AmpTrack(AmpEvent.FEEDBACK)}
>
<Button variant="ghost" size="xs">
<Button variant="ghost-gray" size="xs">
<Flex gap={1} align="center">
<CustomIcon name="feedback" />
<Text variant="body3" color="text.dark">
Expand All @@ -75,7 +75,7 @@ const Footer = () => (
</Flex>
<Flex direction="column" alignItems="end" minW="60px">
<Button
variant="ghost"
variant="ghost-gray"
size="xs"
sx={{ _hover: { "> div > svg": { opacity: "100" } } }}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const RelatedProposalsTable = ({
<EmptyState
imageVariant="empty"
message="This contract does not have related proposals yet."
withBorder
/>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export const TxsTable = ({
<EmptyState
imageVariant="empty"
message="This contract does not have any transactions"
withBorder
/>
}
showRelations={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const MigrationTable = ({
<EmptyState
imageVariant="empty"
message="This contract does not have any migration history yet."
withBorder
/>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const PublicProjectCodeTable = observer(
/>
) : (
<>
<TableContainer mb={10}>
<TableContainer>
<CodeTableHeader />
{publicCodes.map((code) => (
<PublicProjectCodeRow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const PublicProjectContractTable = observer(
/>
) : (
<>
<TableContainer mb={10}>
<TableContainer>
<ContractTableHeader />
{publicContracts.map((contract) => (
<PublicProjectContractRow
Expand Down
2 changes: 1 addition & 1 deletion src/lib/styles/theme/components/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const Button: ComponentStyleConfig = {
disabled: {
color: "pebble.500",
},
hoverBg: pebble700,
hoverBg: "pebble.800",
activeBg: "transparent",
}),
"ghost-error": generateStyle({
Expand Down