Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/app/components/Heading/Heading.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react";
import { style } from "typestyle";

import { Color } from "../../constants";
import { Heading } from "./Heading";

const h4Style = style({
alignItems: "center",
color: Color.GREY
});

export default {
component: Heading,
title: "Heading"
};

// Card component should be called here instead of h1 / h2,
export const myHeading = () => (
<Heading>
<h1>Create New Feature</h1>
<h2 className={h4Style}>You can create runs later.</h2>
</Heading>
);
23 changes: 23 additions & 0 deletions src/app/components/Heading/Heading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React, { FunctionComponent } from "react";
import { style } from "typestyle";

import { Spacing } from "../../constants";

interface IProps {
children: JSX.Element[] | JSX.Element;
}


const headingStyle = style({
padding: Spacing.S
});

export const Heading: FunctionComponent<IProps> = (prop) => {
const { children } = prop;
return (
<div className={headingStyle}>
{children}
</div>

);
};