ISSUE-003 - I'm struggling to get Babel Macros to work correctly in my project. So here I'm just manually writing the display names for my styled components.

This commit is contained in:
Kyle Geib committed 2021-12-21 14:38:07 -05:00
1 parent b9d73560a9
commit 7aff7a24c6
5 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -5,7 +5,7 @@ type FullScreenContainerProps = {
minWidth?: number,
}
export const FullScreenContainer = styled.div < FullScreenContainerProps>`
export const FullScreenContainer = styled.div<FullScreenContainerProps>`
--minHeight: ${({ minHeight = 0 }) => `${minHeight}px`};
--minWidth: ${({ minWidth = 0 }) => `${minWidth}px`};
--overflowY: ${({ minHeight }) => minHeight ? "scroll" : "hidden" };
@@ -20,3 +20,4 @@ export const FullScreenContainer = styled.div < FullScreenContainerProps>`
overflow-y: var(--overflowY);
overflow-x: var(--overflowX);
`;
FullScreenContainer.displayName = "FullScreenContainer";