Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
[FRNT-488] Fix Grid and Column (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatinacher authored Apr 23, 2021
1 parent 655535d commit d998ca1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ui/templates/grid/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import styled from 'styled-components';
import styled, { StyledComponent } from 'styled-components';

interface GridProps {
columns: number;
columns?: number;
}

interface ColumnProps {
size: number;
size?: number;
}

const map = (properties: GridProps) => ({
Expand All @@ -20,8 +20,8 @@ export const Grid = styled.div.attrs(map)`
display: grid;
width: 100%;
grid-template-columns: repeat(var(--local-columns), 1fr);
`;
` as StyledComponent<'div', Record<string, unknown>, GridProps>;

export const Column = styled.div.attrs(columnMap)`
grid-column: var(--local-size) span;
`;
` as StyledComponent<'div', Record<string, unknown>, ColumnProps>;

0 comments on commit d998ca1

Please sign in to comment.