Skip to content

Commit

Permalink
Merge pull request #20 from vangberg/dependabot/npm_and_yarn/multi-ce…
Browse files Browse the repository at this point in the history
…c19ee5eb

Bump react, react-dom and @types/react
  • Loading branch information
vangberg authored Dec 17, 2024
2 parents 1bcaa3e + 478b6b4 commit be41917
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 51 deletions.
65 changes: 23 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"@types/markdown-it": "^14.1.2",
"@types/node": "^22.10.2",
"@types/parsimmon": "^1.10.6",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"autoprefixer": "^10.2.5",
Expand Down Expand Up @@ -113,8 +113,8 @@
"prosemirror-state": "^1.4.3",
"prosemirror-transform": "^1.10.2",
"prosemirror-view": "^1.37.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sqlite": "^5.1.1",
"sqlite3": "^5.1.6",
"style-loader": "^4.0.0",
Expand Down
8 changes: 5 additions & 3 deletions src/skrift-electron/renderer/components/CardToolbarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import React, { PropsWithChildren, useCallback } from "react";
type Props = {
onClick?: () => void;
className?: string;
ref?: React.Ref<HTMLDivElement>;
};

export const CardToolbarItem = React.forwardRef<HTMLDivElement, PropsWithChildren<Props>>(({
export const CardToolbarItem: React.FC<PropsWithChildren<Props>> = ({
onClick,
className,
children,
ref,
...props
}, ref) => {
}) => {
return (
<div
ref={ref}
Expand All @@ -26,4 +28,4 @@ export const CardToolbarItem = React.forwardRef<HTMLDivElement, PropsWithChildre
{children}
</div>
);
});
}
4 changes: 2 additions & 2 deletions src/skrift-electron/renderer/hooks/usePrevious.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useRef } from "react";

export const usePrevious = <T>(value: T): T | undefined => {
const ref = useRef<T>();
export const usePrevious = <T>(value: T): T | null => {
const ref = useRef<T>(null);

useEffect(() => {
ref.current = value;
Expand Down

0 comments on commit be41917

Please sign in to comment.