diff --git a/public/images/github.svg b/app/javascript/images/github.svg similarity index 100% rename from public/images/github.svg rename to app/javascript/images/github.svg diff --git a/public/images/icon.svg b/app/javascript/images/icon.svg similarity index 100% rename from public/images/icon.svg rename to app/javascript/images/icon.svg diff --git a/app/javascript/images/image.d.ts b/app/javascript/images/image.d.ts new file mode 100644 index 0000000..79fe2de --- /dev/null +++ b/app/javascript/images/image.d.ts @@ -0,0 +1,12 @@ +declare module '*.jpg' +declare module '*.jpeg' +declare module '*.png' +declare module '*.gif' +declare module '*.tiff' +declare module '*.ico' +declare module '*.svg' +declare module '*.eot' +declare module '*.otf' +declare module '*.ttf' +declare module '*.woff' +declare module '*.woff2' diff --git a/public/images/mui.png b/app/javascript/images/mui.png similarity index 100% rename from public/images/mui.png rename to app/javascript/images/mui.png diff --git a/app/javascript/packs/components/Footer.tsx b/app/javascript/packs/components/Footer.tsx index 6431b20..95cb446 100644 --- a/app/javascript/packs/components/Footer.tsx +++ b/app/javascript/packs/components/Footer.tsx @@ -1,3 +1,4 @@ +import GitHub from "images/github.svg"; import * as React from "react"; export const Footer: React.StatelessComponent<{}> = () => { @@ -11,7 +12,7 @@ export const Footer: React.StatelessComponent<{}> = () => {