Skip to content

Commit

Permalink
logo img from own bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazuh committed Mar 3, 2024
1 parent a0ae379 commit f78d387
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
"@/components": "./src/components",
"@/lib/utils": "./src/lib/utils",
"@/services": "./src/services",
"@/assets": "./src/assets",
},
},
],
Expand Down
2 changes: 2 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const config: Config = {
testEnvironment: "jsdom",
moduleNameMapper: {
"\\.(css|less)$": "identity-obj-proxy",
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/mocks/fileMock.js",
},
globals: {
fetch: global.fetch,
Expand Down
1 change: 1 addition & 0 deletions mocks/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "";
Empty file removed src/assets/.gitkeep
Empty file.
Binary file added src/assets/mazuhsoftwares.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/components/template/AppPageTemplate.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import { cn } from "@/lib/utils";
import { faGlobe } from "@fortawesome/free-solid-svg-icons";
import MazuhSoftwaresLogo from "@/assets/mazuhsoftwares.jpeg";
import { cn } from "@/lib/utils";

export function AppPageTemplate({
children,
Expand Down Expand Up @@ -51,7 +52,7 @@ export function AppPageTemplate({
rel="noopener noreferrer"
>
<img
src="https://mazuhsoftwares.files.wordpress.com/2022/10/cropped-mediumsquarelogo.jpg"
src={MazuhSoftwaresLogo}
alt="All rights reserved."
className="w-6 h-6 mr-2 rounded-full select-none"
/>
Expand Down

0 comments on commit f78d387

Please sign in to comment.