File tree Expand file tree Collapse file tree 3 files changed +41
-2
lines changed
components/FullScreenForm Expand file tree Collapse file tree 3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { makeStyles } from "@material-ui/core/styles"
2
+ import Typography from "@material-ui/core/Typography"
3
+ import React from "react"
4
+
5
+ export interface TitleProps {
6
+ title : string
7
+ organization : string
8
+ }
9
+
10
+ const useStyles = makeStyles ( ( theme ) => ( {
11
+ title : {
12
+ textAlign : "center" ,
13
+ marginBottom : theme . spacing ( 10 ) ,
14
+
15
+ [ theme . breakpoints . down ( "sm" ) ] : {
16
+ gridColumn : 1 ,
17
+ } ,
18
+
19
+ "& h3" : {
20
+ marginBottom : theme . spacing ( 1 ) ,
21
+ } ,
22
+ } ,
23
+ } ) )
24
+
25
+ export const Title : React . FC < TitleProps > = ( { title, organization } ) => {
26
+
27
+ const styles = useStyles ( )
28
+
29
+ return < div className = { styles . title } >
30
+ < Typography variant = "h3" > { title } </ Typography >
31
+ < Typography variant = "caption" >
32
+ In < strong > { organization } </ strong > organization
33
+ </ Typography >
34
+ </ div >
35
+ }
Original file line number Diff line number Diff line change
1
+ export { Title } from "./Title"
Original file line number Diff line number Diff line change
1
+ import Typography from "@material-ui/core/Typography"
1
2
import React from "react"
2
3
4
+ import { Title } from "../../../components/FullScreenForm"
5
+
3
6
const CreateSelectProjectPage : React . FC = ( ) => {
4
7
5
8
const createWorkspace = ( ) => {
6
9
alert ( "create" )
7
10
}
8
11
9
12
const button = {
10
- children : "New Workspace " ,
13
+ children : "Next " ,
11
14
onClick : createWorkspace ,
12
15
}
13
16
14
17
return (
15
- < div > Create Page </ div >
18
+ < Title title = { "Select Project" } organization = { "test-org" } / >
16
19
)
17
20
}
18
21
You can’t perform that action at this time.
0 commit comments