diff --git a/src/components/Lending/LendingApply/LedingApply.tsx b/src/components/Lending/LendingApply/LedingApply.tsx
index e1f2839..ed4de81 100644
--- a/src/components/Lending/LendingApply/LedingApply.tsx
+++ b/src/components/Lending/LendingApply/LedingApply.tsx
@@ -1,10 +1,9 @@
import React from 'react';
import * as styles from './LendingApply.module.scss';
import { StaticImage } from 'gatsby-plugin-image';
-import ApplyLink from '../../common/ApplyLink';
+import ApplyLink from '../../Common/ApplyLink';
const LedingApply = () => {
-
return (
diff --git a/src/components/Lending/LendingReservation/LendingReservation.tsx b/src/components/Lending/LendingReservation/LendingReservation.tsx
index 03f8ea1..d8b5d20 100644
--- a/src/components/Lending/LendingReservation/LendingReservation.tsx
+++ b/src/components/Lending/LendingReservation/LendingReservation.tsx
@@ -1,8 +1,8 @@
import React from 'react';
import * as styles from './LendingReservation.module.scss';
-import Reservation1 from '../../../images/lending/lending_reservation_1.inline.svg';
-import Reservation2 from '../../../images/lending/lending_reservation_2.inline.svg';
-import Reservation3 from '../../../images/lending/lending_reservation_3.inline.svg';
+import Reservation1 from '@images/lending/lending_reservation_1.inline.svg';
+import Reservation2 from '@images/lending/lending_reservation_2.inline.svg';
+import Reservation3 from '@images/lending/lending_reservation_3.inline.svg';
const LendingReservation = () => {
return (
diff --git a/src/components/Lending/LendingStore/LendingStore.tsx b/src/components/Lending/LendingStore/LendingStore.tsx
index 6feed12..fdc7d6d 100644
--- a/src/components/Lending/LendingStore/LendingStore.tsx
+++ b/src/components/Lending/LendingStore/LendingStore.tsx
@@ -1,8 +1,8 @@
import React from 'react';
import * as styles from './LendingStore.module.scss';
import LendingFlexContent from '../BaseComponents/LendingFlexContent';
-import ReviewMbSvg from '../../../images/lending/lending_review_mbReview.inline.svg';
-import ReviewPcSvg from '../../../images/lending/lending_review_pcReview.inline.svg';
+import ReviewMbSvg from '@images/lending/lending_review_mbReview.inline.svg';
+import ReviewPcSvg from '@images/lending/lending_review_pcReview.inline.svg';
const LendingStore = () => {
return (
diff --git a/src/pages/alliance/index.tsx b/src/pages/alliance/index.tsx
index c2fd23e..f5e5553 100644
--- a/src/pages/alliance/index.tsx
+++ b/src/pages/alliance/index.tsx
@@ -1,10 +1,10 @@
import React, { useState } from 'react';
import { HeadFC, PageProps } from 'gatsby';
-import LedingApply from '../../components/Lending/LendingApply/LedingApply';
-import AllianceBenefit from '../../components/Alliance/AllianceBenefit/AllianceBenefit';
-import AllianceMain from '../../components/Alliance/AllianceMain/AllianceMain';
-import AllianceContact from '../../components/Alliance/AllianceContact/AllianceContact';
-import Layout from '../../components/Layout/Layout';
+import LedingApply from '@components/Lending/LendingApply/LedingApply';
+import AllianceBenefit from '@components/Alliance/AllianceBenefit/AllianceBenefit';
+import AllianceMain from '@components/Alliance/AllianceMain/AllianceMain';
+import AllianceContact from '@components/Alliance/AllianceContact/AllianceContact';
+import Layout from '@components/Layout/Layout';
type CustomLocationType = {
shouldScrollToContact: boolean;
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 94de668..28d02ef 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,9 +1,9 @@
import * as React from 'react';
import type { HeadFC, PageProps } from 'gatsby';
-import LedingApply from '../components/Lending/LendingApply/LedingApply';
-import LendingReservation from '../components/Lending/LendingReservation/LendingReservation';
-import LendingStore from '../components/Lending/LendingStore/LendingStore';
-import Layout from '../components/Layout/Layout';
+import LedingApply from '@components/Lending/LendingApply/LedingApply';
+import LendingReservation from '@components/Lending/LendingReservation/LendingReservation';
+import LendingStore from '@components/Lending/LendingStore/LendingStore';
+import Layout from '@components/Layout/Layout';
const IndexPage: React.FC = () => {
return (
diff --git a/src/types/png.d.ts b/src/types/png.d.ts
new file mode 100644
index 0000000..dd84df4
--- /dev/null
+++ b/src/types/png.d.ts
@@ -0,0 +1,4 @@
+declare module '*.png' {
+ const content: any;
+ export default content;
+}
diff --git a/tsconfig.json b/tsconfig.json
index 25419bb..6939740 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -11,9 +11,12 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
- "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
- "lib": ["dom", "esnext"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
- "jsx": "react", /* Specify what JSX code is generated. */
+ "target": "esnext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
+ "lib": [
+ "dom",
+ "esnext"
+ ] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
+ "jsx": "react" /* Specify what JSX code is generated. */,
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
@@ -24,11 +27,18 @@
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
/* Modules */
- "module": "esnext", /* Specify what module code is generated. */
+ "module": "esnext" /* Specify what module code is generated. */,
// "rootDir": "./", /* Specify the root folder within your source files. */
- "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
+ "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
+ "baseUrl": "./" /* Specify the base directory to resolve non-relative module names. */,
+ "paths": {
+ "@src/*": ["src/*"],
+ "@api/*": ["src/api/*"],
+ "@components/*": ["src/components/*"],
+ "@images/*": ["src/images/*"],
+ "@pages/*": ["src/pages/*"],
+ "@styles/*": ["src/styles/*"]
+ } /* Specify a set of entries that re-map imports to additional lookup locations. */,
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
@@ -69,12 +79,12 @@
/* Interop Constraints */
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
+ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */,
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
+ "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
/* Type Checking */
- "strict": true, /* Enable all strict type-checking options. */
+ "strict": true /* Enable all strict type-checking options. */,
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
@@ -96,7 +106,7 @@
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["./src/**/*", "./gatsby-node.ts", "./gatsby-config.ts", "./plugins/**/*"]
}