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