Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(front-end): reuse specific page context
Browse files Browse the repository at this point in the history
The type in renderer collapses into one of the type unlike the type in
front-end.
  • Loading branch information
KennethTrecy committed Sep 15, 2022
1 parent 5067a12 commit f5bed10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common_front-end/helpers/filter_link_infos.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import type { PageContext } from "$/types/renderer"
import type PermissionGroup from "$/permissions/base"
import type { ConditionalLinkInfo, LinkInfo } from "$@/types/independent"
import type { DeserializedPageContext, ConditionalLinkInfo, LinkInfo } from "$@/types/independent"

import isUndefined from "$/type_guards/is_undefined"

export default function<T, U extends PermissionGroup<any, T>>(
context: PageContext<"deserialized">,
context: DeserializedPageContext,
conditionalLinkInfos: ConditionalLinkInfo<T, U>[]
): LinkInfo[] {
const { userProfile } = context.pageProps
Expand Down

0 comments on commit f5bed10

Please sign in to comment.