Skip to content

Commit

Permalink
fix: maxColumnsPerRow is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 8, 2019
1 parent 7907d87 commit 25f5432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Column, { FooterColumn } from './column';
export interface FooterProps {
prefixCls?: string;
bottom?: React.ReactNode;
maxColumnsPerRow: number;
maxColumnsPerRow?: number;
columns?: FooterColumn[];
theme?: 'dark' | 'light';
className?: string;
Expand Down Expand Up @@ -62,7 +62,7 @@ const Footer: React.FC<FooterProps> = ({
) => {
const styleObject = { ...columnStyle } as React.CSSProperties;
if (shouldWrap) {
styleObject.flex = `0 0 ${100 / (maxColumnsPerRow + 1) +
styleObject.flex = `0 0 ${100 / (maxColumnsPerRow! + 1) +
0.1}%`;
}
return (
Expand Down

0 comments on commit 25f5432

Please sign in to comment.