Skip to content

Commit

Permalink
v1.0.10 Add extended param to onExtend function.
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite committed Aug 12, 2021
1 parent 654a460 commit e382000
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reearth-realign",
"version": "1.0.9",
"version": "1.0.10",
"author": "KaWaite",
"module": "dist/realign.esm.js",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/Grid/GridItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type ItemProps<T extends Location> = {
dropLocation?: T,
originalLocation?: T
) => void;
onExtend?: (id: string) => void;
onExtend?: (id: string, extended?: boolean) => void;
// Props passed from parent.
location?: T;
end?: boolean;
Expand Down Expand Up @@ -72,7 +72,7 @@ const GridItem: React.FC<ItemProps<Location>> = ({

const handleExtend = () => {
if (!extendable || !onExtend) return;
onExtend(id);
onExtend(id, extended);
setHovered(false);
};

Expand Down

0 comments on commit e382000

Please sign in to comment.