Skip to content

Commit

Permalink
⬆️(dependencies) fixes for React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Bossavit authored and Laurent Bossavit committed Jan 9, 2025
1 parent 91cd7b5 commit 96f4f2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/frontend/apps/desk/src/components/Box.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentPropsWithRef, ReactHTML } from 'react';
import { ComponentPropsWithRef } from 'react';
import styled from 'styled-components';
import { CSSProperties } from 'styled-components/dist/types';

Expand All @@ -9,7 +9,7 @@ import {
} from '@/utils/styleBuilder';

export interface BoxProps {
as?: keyof ReactHTML;
as?: keyof HTMLElementTagNameMap;
$align?: CSSProperties['alignItems'];
$background?: CSSProperties['background'];
$color?: CSSProperties['color'];
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/apps/desk/src/components/InfiniteScroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const InfiniteScroll = ({
scrollContainer,
...boxProps
}: PropsWithChildren<InfiniteScrollProps>) => {
const timeout = useRef<ReturnType<typeof setTimeout>>();
const timeout = useRef<ReturnType<typeof setTimeout>>(null);

useEffect(() => {
if (!scrollContainer) {
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/apps/desk/src/components/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CSSProperties, ComponentPropsWithRef, ReactHTML } from 'react';
import { CSSProperties, ComponentPropsWithRef } from 'react';
import styled from 'styled-components';

import { tokens } from '@/cunningham';
Expand All @@ -10,7 +10,7 @@ type TextSizes = keyof typeof sizes;

export interface TextProps extends BoxProps {
as?: keyof Pick<
ReactHTML,
HTMLElementTagNameMap,
'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
>;
$weight?: CSSProperties['fontWeight'];
Expand Down

0 comments on commit 96f4f2e

Please sign in to comment.