diff --git a/src/components/404LinkCorrection/index.tsx b/src/components/FourZeroFourHint/index.tsx similarity index 97% rename from src/components/404LinkCorrection/index.tsx rename to src/components/FourZeroFourHint/index.tsx index a93c146..35c0ff7 100644 --- a/src/components/404LinkCorrection/index.tsx +++ b/src/components/FourZeroFourHint/index.tsx @@ -55,14 +55,14 @@ function levenshteinDistance(term1: string, term2: string) { return matrix[term2.length][term1.length] } -interface IPossibleCorrections { +interface IFourZeroFourHint { basepath: string location: WindowLocation data: { allFile: FileConnection } threshold?: number } -export const PossibleCorrections: FC = ({ +export const FourZeroFourHint: FC = ({ basepath, location, data, diff --git a/src/components/404LinkCorrection/styles.tsx b/src/components/FourZeroFourHint/styles.tsx similarity index 100% rename from src/components/404LinkCorrection/styles.tsx rename to src/components/FourZeroFourHint/styles.tsx diff --git a/src/pages/archives/404.tsx b/src/pages/archives/404.tsx index 9cc24c3..bea9bc2 100644 --- a/src/pages/archives/404.tsx +++ b/src/pages/archives/404.tsx @@ -6,7 +6,7 @@ import { FileConnection } from "../../../generated/graphql" import { ComponentQuery } from "../../../typings" import { SEO } from "../../components/SEO" -import { PossibleCorrections } from "../../components/404LinkCorrection" +import { FourZeroFourHint } from "../../components/FourZeroFourHint" import { FourZeroFour } from "../../components/FourZeroFour" export default ({ data }: ComponentQuery<{ allFile: FileConnection }>) => ( @@ -15,7 +15,7 @@ export default ({ data }: ComponentQuery<{ allFile: FileConnection }>) => ( {({ location }) => ( - ) => ( {({ location }) => ( -