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:
1 parent
b9d73560a9
commit
7aff7a24c6
5 files changed
+7
-1
No files matched your search
@@ -14,6 +14,7 @@ export const LayoutGrid = styled.div<LayoutGridProps>`
|
||||
height: calc(100% - ${({ headerOffset = 0 }) => headerOffset}px);
|
||||
width: 100%;
|
||||
`;
|
||||
LayoutGrid.displayName = "LayoutGrid";
|
||||
|
||||
type LayoutGridItemProps = {
|
||||
column: number,
|
||||
@@ -27,3 +28,4 @@ export const LayoutGridItem = styled.div<LayoutGridItemProps>`
|
||||
grid-row: ${({ row }) => row}
|
||||
/ span ${({ rowSpan = 1 }) => rowSpan};;
|
||||
`;
|
||||
LayoutGridItem.displayName = "LayoutGridItem";
|
||||
@@ -16,3 +16,4 @@ export const MockupBlock = styled.div<MockupBlockProps>`
|
||||
background-color: ${({ color }) => color};
|
||||
padding: 0.3em;
|
||||
`;
|
||||
MockupBlock.displayName = "MockupBlock";
|
||||
@@ -5,3 +5,4 @@ export const Nav = styled.nav`
|
||||
padding-bottom: 1rem;
|
||||
padding-left: 1rem;
|
||||
`;
|
||||
Nav.displayName = "Nav";
|
||||
@@ -11,3 +11,4 @@ export const HeaderBar = styled.header`
|
||||
font-family: ${p => p.theme.fonts.accent};
|
||||
font-size: 0.8em;
|
||||
`;
|
||||
HeaderBar.displayName = "HeaderBar";
|
||||
@@ -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";
|
||||
Reference in new issue
Block a user