Skip to content

Commit

Permalink
Merge pull request #44 from gateway-fm/remove-report-btn
Browse files Browse the repository at this point in the history
removed reporting button from bridge UI
  • Loading branch information
viktoriiafm authored Nov 14, 2024
2 parents acb2817 + e195933 commit 7c9dc94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-docker-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
push: true
tags: gatewayfm/zkevm-bridge-ui-generic:1.0.8
tags: gatewayfm/zkevm-bridge-ui-generic:1.0.9
17 changes: 2 additions & 15 deletions src/views/shared/snackbar/snackbar.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface SnackbarProps {
reportForm: Env["reportForm"];
}

export const Snackbar: FC<SnackbarProps> = ({ message, onClose, onReport, reportForm }) => {
export const Snackbar: FC<SnackbarProps> = ({ message, onClose }) => {
const classes = useSnackbarStyles();

const Icon = ({ message }: { message: Message }): JSX.Element => {
Expand Down Expand Up @@ -46,27 +46,14 @@ export const Snackbar: FC<SnackbarProps> = ({ message, onClose, onReport, report
</div>
);
} else {
const { parsed, text } = message;

return (
<div className={classes.root}>
<div className={classes.wrapper}>
<Icon message={message} />
<p className={classes.message}>
{text || reportForm.isEnabled
? "An error occurred. Would you mind reporting it?"
: "An error occurred. You can see the details in the console"}
An error occurred
</p>
{reportForm.isEnabled && (
<button
className={classes.reportButton}
onClick={() => {
onReport(parsed, reportForm);
}}
>
Report
</button>
)}
<button className={classes.closeButton} onClick={onClose}>
<CloseIcon className={classes.closeIcon} />
</button>
Expand Down

0 comments on commit 7c9dc94

Please sign in to comment.