Skip to content

Commit

Permalink
refactor(Box): Remove forwardRed until #2 resolved
Browse files Browse the repository at this point in the history
Signed-off-by: ScottAgirs <[email protected]>
  • Loading branch information
ScottAgirs committed Sep 23, 2021
1 parent 00a0cae commit 3229877
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/kit/components/layout/Box.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { forwardRef } from 'react';

import React from 'react';
import styled from 'styled-components';
import {
border,
Expand All @@ -25,10 +24,8 @@ const StyledBox = styled.div`
${typography};
`;

const Box = forwardRef(({ children, ...rest }, ref) => (
<StyledBox ref={ref} {...rest}>
{children}
</StyledBox>
));
const Box = ({ children, ...rest }) => (
<StyledBox {...rest}>{children}</StyledBox>
);

export default Box;

0 comments on commit 3229877

Please sign in to comment.