Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Jan 22, 2025
1 parent b2fa617 commit e8ab8ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
8 changes: 5 additions & 3 deletions design-system/packages/modals/src/DrawerController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export const DrawerController = ({ isOpen, children }: DrawerControllerProps) =>
return (
<Transition appear mountOnEnter unmountOnExit in={isOpen} timeout={150} nodeRef={nodeRef}>
{transitionState => (
<DrawerControllerContextProvider value={transitionState} ref={nodeRef}>
{children}
</DrawerControllerContextProvider>
<div ref={nodeRef}>
<DrawerControllerContextProvider value={transitionState}>
{children}
</DrawerControllerContextProvider>
</div>
)}
</Transition>
)
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-session-invalidation/keystone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function withSessionInvalidation (config: Config<Session>): Config<Session> {

export default withSessionInvalidation(
withAuth(
config<TypeInfo>({
config({
db: {
provider: 'sqlite',
url: process.env.DATABASE_URL || 'file:./keystone-example.db',
Expand All @@ -83,4 +83,4 @@ export default withSessionInvalidation(
session: statelessSessions<Session>(),
})
)
)
) as any as TypeInfo;
3 changes: 2 additions & 1 deletion packages/core/src/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function build (
undefined,
undefined,
undefined,
'default'
'default',
undefined,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function ComponentBlockRender ({

const childrenByPath: Record<string, ReactElement> = {}
let maybeChild: ReactElement | undefined
children.forEach((child: ReactElement) => {
children.forEach((child: ReactElement<any>) => {
const propPath = child.props.children.props.element.propPath
if (propPath === undefined) {
maybeChild = child
Expand Down

0 comments on commit e8ab8ed

Please sign in to comment.