Skip to content

Commit

Permalink
Merge pull request #1 from reearth/add-children-type-defs
Browse files Browse the repository at this point in the history
chore: Add children type defs
  • Loading branch information
KaWaite authored Jun 9, 2022
2 parents 916789f + 7b62158 commit 89cce2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-align",
"version": "2.0.4",
"version": "2.0.5",
"author": "KaWaite",
"module": "dist/react-align.esm.js",
"license": "MIT",
Expand Down
5 changes: 3 additions & 2 deletions src/GridSection.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { CSSProperties } from 'react';
import React, { CSSProperties, ReactNode } from 'react';

import { useAlignContext } from './context';
import './grid.css';

export type GridSectionProps = {
className?: string;
children?: ReactNode;
horizontal?: boolean;
stretch?: boolean;
fixedWidth?: number;
Expand All @@ -16,13 +17,13 @@ export type GridSectionProps = {

const GridSection: React.FC<GridSectionProps> = ({
className,
children,
horizontal,
stretch,
fixedWidth,
fixedHeight,
style,
editorStyle,
children,
}) => {
const { editing: enabled } = useAlignContext();

Expand Down
5 changes: 3 additions & 2 deletions src/GridWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { CSSProperties, useCallback, useState } from 'react';
import React, { CSSProperties, ReactNode, useCallback, useState } from 'react';
import {
DragDropContext,
DropResult,
Expand All @@ -11,6 +11,7 @@ import './grid.css';

export type GridWrapperProps = {
className?: string;
children?: ReactNode;
editing?: boolean;
vertical?: boolean;
stretch?: boolean;
Expand All @@ -30,12 +31,12 @@ export type GridWrapperProps = {

const GridWrapper: React.FC<GridWrapperProps> = ({
className,
children,
editing,
vertical,
stretch,
style,
editorStyle,
children,
onMove,
onAlignChange,
onExtend,
Expand Down

0 comments on commit 89cce2c

Please sign in to comment.