Skip to content

Commit

Permalink
styling copy btn
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleNa1000 committed Oct 19, 2023
1 parent 4d58847 commit d6e1f11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/assets/images/icon/copy-to-clipboard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions src/core/components/profile/stepCard.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const useStyles = makeStyles(theme => ({
margin: theme.spacing(1)
},
icon: {
height: 16
height: 16,
padding: theme.spacing(1.5, 2.5)
},
redCircle: {
background: theme.palette.primary.main,
Expand Down Expand Up @@ -188,10 +189,10 @@ const StepCard: React.FC<StepCardProps> = ({ step, status, isApproved }) => {
if ("clipboard" in navigator) return await navigator.clipboard.writeText(zoomName)
}

const CopyToClipboardIcon: React.FC<React.HTMLAttributes<HTMLImageElement>> = props => {
const CopyToClipboardButton: React.FC<React.HTMLAttributes<HTMLImageElement>> = props => {
return (
<Button variant={"contained"} disableElevation className={classes.solid}>
<img src={copyToClipBoard} onClick={copyZoomNameToClipboard} alt="" {...props} />{" "}
<Button variant={"contained"} disableElevation className={classes.solid} onClick={copyZoomNameToClipboard}>
<img src={copyToClipBoard} alt="" {...props} />{" "}
</Button>
)
}
Expand Down Expand Up @@ -247,7 +248,7 @@ const StepCard: React.FC<StepCardProps> = ({ step, status, isApproved }) => {
</Typography>
<Typography variant="subtitle2" className={`${classes.text} ${classes.content}`}>
{text.contents}
รบกวนน้องตั้งชื่อใน ZOOM ว่า {zoomName} <CopyToClipboardIcon className={classes.icon} /> นะครับ
รบกวนน้องตั้งชื่อใน ZOOM ว่า {zoomName} นะครับ <CopyToClipboardButton className={classes.icon} />
</Typography>

<div className={classes.buttonContainer}>
Expand Down

0 comments on commit d6e1f11

Please sign in to comment.