Skip to content

Commit

Permalink
Merge pull request #241 from abilpraju-aot/bugfix/FWF-3510-image-fix
Browse files Browse the repository at this point in the history
changed svg to component
  • Loading branch information
arun-s-aot authored Jul 24, 2024
2 parents 5a4ba89 + dd7a836 commit 231e762
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 40 deletions.
46 changes: 46 additions & 0 deletions forms-flow-admin/src/components/AccessDenied/AccessDenied.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions forms-flow-admin/src/components/AccessDenied/AccessDenied.svg

This file was deleted.

4 changes: 2 additions & 2 deletions forms-flow-admin/src/components/AccessDenied/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import AccessDeniedIcon from "./AccessDenied.svg";
import AccessDeniedIcon from "./AccessDenied.js";
import './accessDenied.scss';
import { useTranslation } from "react-i18next";
import { BASE_ROUTE } from "../../constants/index";
Expand All @@ -24,7 +24,7 @@ const AccessDenied = ({ userRoles }) => {

return (
<div className="d-flex flex-column align-items-center text-center" data-testid="access-denied-component">
<img src={AccessDeniedIcon} alt="Access Denied Icon" className="mb-4 mt-2" />
<AccessDeniedIcon alt="Access Denied" className="mb-4 mt-2" />
<h1 className="access-denied-text" data-testid="access-denied-title">{t("Access Denied")}</h1>
<span className="access-denied" data-testid="access-denied-message">{t("You don't have permission to access this page.")}</span>
<span className="access-denied" data-testid="access-denied-submessage">{t("Please contact your administrator or try again later.")}</span>
Expand Down

0 comments on commit 231e762

Please sign in to comment.