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

Settings modal #594

Merged
merged 2 commits into from
Jun 26, 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
3 changes: 3 additions & 0 deletions src/assets/img/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/modules/common/CopyAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CopyAddress: React.FC<Props> = ({ address, typographyProps }) => {
<>
<Grid container alignItems="center">
<Grid item>
<Typography variant="subtitle1" color="textPrimary" {...typographyProps}>
<Typography variant="subtitle2" color="textPrimary" {...typographyProps}>
{isMobileSmall ? toShortAddress(address) : address}
</Typography>
</Grid>
Expand Down
7 changes: 4 additions & 3 deletions src/modules/common/CopyButton.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React, { useState } from "react"
import { Box, styled, Tooltip } from "@material-ui/core"
import { FileCopyOutlined } from "@material-ui/icons"
import { FileCopyOutlined, Image } from "@material-ui/icons"
import DownloadIcon from "assets/img/download.svg"

const CopyIcon = styled(FileCopyOutlined)({
const CopyIcon = styled("img")({
cursor: "pointer"
})

Expand All @@ -23,7 +24,7 @@ export const CopyButton: React.FC<{ text: string; style?: any }> = ({ text, styl
}}
>
<Tooltip style={style} placement="bottom" title={!copied ? "Copy to Clipboard" : "Copied!"}>
<CopyIcon color="secondary" fontSize="small" />
<CopyIcon src={DownloadIcon} />
</Tooltip>
</Box>
)
Expand Down
13 changes: 9 additions & 4 deletions src/modules/explorer/components/ResponsiveDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ const Content = styled(Grid)({
padding: "41px 46px"
})

const TitleText = styled(Typography)({
const TitleText = styled(Typography)(({ theme }) => ({
color: "#ffff",
fontWeight: 550,
lineHeight: ".80",
textTransform: "capitalize"
})
textTransform: "capitalize",
[theme.breakpoints.down("sm")]: {
fontSize: 18
}
}))

const CustomDialog = styled(Dialog)({
"& .MuiDialog-paperWidthMd": {
Expand Down Expand Up @@ -57,7 +60,9 @@ export const ResponsiveDialog: React.FC<{
<CloseButton onClose={onClose} />
</Grid>
</Grid>
<Grid item>{children}</Grid>
<Grid item style={{ width: "inherit" }}>
{children}
</Grid>
</Content>
</BottomSheet>
) : (
Expand Down
Loading