Skip to content

Commit bdbac3b

Browse files
fix(component-header-footer): point all images to public folder
Should use Vite public folder for static assets instead of nested assets folders
1 parent 7d99712 commit bdbac3b

File tree

12 files changed

+9
-14
lines changed

12 files changed

+9
-14
lines changed
Binary file not shown.
Binary file not shown.

packages/component-header-footer/src/footer/components/Innovation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from "react";
33

44
import { trackGAEvent } from "../../../../../../shared";
5-
import innovationLogo from "../../assets/images/innovationLogo.png";
5+
import innovationLogo from "../../../../public/assets/images/innovationLogo.png";
66
import { FOOTER_URLS } from "../../core/constants";
77

88
const DEFAULT_GA_EVENT = {

packages/component-header-footer/src/footer/components/Social/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ import PropTypes, { shape } from "prop-types";
1111
import React from "react";
1212

1313
import { trackGAEvent } from "../../../../../../shared";
14-
import { getCurrentScriptPath } from "../../../../../../shared/utils";
15-
16-
// @ts-ignore
17-
18-
const currentScriptPath = getCurrentScriptPath();
19-
const endorsedLogo = `${currentScriptPath}assets/images/endorsedLogo.png`;
14+
// @ts-expect-error
15+
import endorsedLogo from "../../../../public/assets/images/endorsedLogo.png";
2016

2117
const DEFAULT_GA_EVENT = {
2218
type: "external link",

packages/component-header-footer/src/footer/footer.stories.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from "react";
22

3-
// eslint-disable-next-line import/no-unresolved
4-
import endorsedLogo from "./assets/images/endorsedLogo.png";
3+
import endorsedLogo from "../../public/assets/images/endorsedLogo.png";
54
import { ASUFooter } from "./footer";
65

76
export default {
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)