File tree Expand file tree Collapse file tree 3 files changed +21
-34
lines changed Expand file tree Collapse file tree 3 files changed +21
-34
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ import {
4
4
Avatar ,
5
5
Flex ,
6
6
FlexProps ,
7
- Heading ,
8
7
ListItem ,
9
- ModalBody ,
10
- ModalHeader ,
11
8
Skeleton as ChakraSkeleton ,
12
9
SkeletonCircle as ChakraSkeletonCircle ,
13
10
UnorderedList ,
@@ -43,7 +40,7 @@ const SkeletonCircle = (props) => (
43
40
44
41
const ContributorList = ( { children } : { children : React . ReactNode } ) => {
45
42
return (
46
- < UnorderedList maxH = "2xs" m = { 0 } mt = { 6 } overflowY = "scroll" >
43
+ < UnorderedList m = { 0 } mt = { 6 } >
47
44
{ children }
48
45
</ UnorderedList >
49
46
)
@@ -102,26 +99,20 @@ const FileContributors = ({
102
99
103
100
return (
104
101
< >
105
- < Modal isOpen = { isModalOpen } setIsOpen = { setModalOpen } >
106
- < ModalHeader py = { 0 } >
107
- < Heading m = { 0 } >
108
- < Translation id = "contributors" />
109
- </ Heading >
110
- </ ModalHeader >
111
-
112
- < ModalBody >
113
- < Translation id = "contributors-thanks" />
114
- { contributors ? (
115
- < ContributorList >
116
- { contributors . map ( ( contributor ) => (
117
- < Contributor
118
- contributor = { contributor }
119
- key = { contributor . email }
120
- />
121
- ) ) }
122
- </ ContributorList >
123
- ) : null }
124
- </ ModalBody >
102
+ < Modal
103
+ isOpen = { isModalOpen }
104
+ onClose = { ( ) => setModalOpen ( false ) }
105
+ size = { { base : "full" , md : "xl" } }
106
+ title = { < Translation id = "contributors" /> }
107
+ >
108
+ < Translation id = "contributors-thanks" />
109
+ { contributors ? (
110
+ < ContributorList >
111
+ { contributors . map ( ( contributor ) => (
112
+ < Contributor contributor = { contributor } key = { contributor . email } />
113
+ ) ) }
114
+ </ ContributorList >
115
+ ) : null }
125
116
</ Modal >
126
117
127
118
< Flex
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
15
15
export type ModalProps = ChakraModalProps & {
16
16
children ?: React . ReactNode
17
- title ?: string
17
+ title ?: React . ReactNode
18
18
actionButtonLabel ?: string
19
19
contentProps ?: ModalContentProps
20
20
}
Original file line number Diff line number Diff line change @@ -245,12 +245,12 @@ const TutorialPage = ({
245
245
< Modal
246
246
isOpen = { isModalOpen }
247
247
onClose = { ( ) => setModalOpen ( false ) }
248
- size = " xl"
248
+ size = { { base : "full" , md : " xl" } }
249
249
contentProps = { { dir } }
250
- >
251
- < Heading fontSize = "2rem" lineHeight = "1.4" mb = { 4 } >
250
+ title = {
252
251
< Translation id = "page-developers-tutorials:page-tutorial-submit-btn" />
253
- </ Heading >
252
+ }
253
+ >
254
254
< Text >
255
255
< Translation id = "page-developers-tutorials:page-tutorial-listing-policy-intro" /> { " " }
256
256
< InlineLink href = "/contributing/content-resources/" >
@@ -260,11 +260,7 @@ const TutorialPage = ({
260
260
< Text >
261
261
< Translation id = "page-developers-tutorials:page-tutorial-submit-tutorial" />
262
262
</ Text >
263
- < Flex
264
- flexDirection = { { base : "column" , md : "initial" } }
265
- maxH = { { base : 64 , md : "initial" } }
266
- overflowY = { { base : "scroll" , md : "initial" } }
267
- >
263
+ < Flex flexDirection = { { base : "column" , md : "initial" } } >
268
264
< Flex
269
265
borderWidth = "1px"
270
266
borderStyle = "solid"
You can’t perform that action at this time.
0 commit comments