Skip to content

Commit

Permalink
fix(frontend): update layout full width condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinedorbozgithub committed Dec 10, 2024
1 parent 8092232 commit 34948c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/utils/laylout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/

import { FULL_WIDTH_PATHNAMES, TRouterValues } from "@/services/types";
import { FULL_WIDTH_PATHNAMES } from "@/services/types";

type TLayout = "default" | "full_width";

export const getLayout = (pathname: string): TLayout =>
FULL_WIDTH_PATHNAMES.includes(pathname as TRouterValues)
FULL_WIDTH_PATHNAMES.some((path) => pathname.startsWith(path))
? "full_width"
: "default";

0 comments on commit 34948c3

Please sign in to comment.