Kind of hacky for now, need to re-do all of the heading components. closes OLN-166
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
const Heading = styled.h1<{ centered?: boolean }>`
|
||||
const Heading = styled.h1<{ as: string; centered?: boolean }>`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
user-select: none;
|
||||
${(props) => (props.as ? "" : "margin-top: 6vh; font-weight: 600;")}
|
||||
${(props) => (props.centered ? "text-align: center;" : "")}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user