File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const CreateMessage = () => {
17
17
} ;
18
18
19
19
return (
20
- < Stack direction = "column" spacing = { 2 } >
20
+ < Stack direction = "column" spacing = { 2 } alignItems = "flex-start" >
21
21
< Typography variant = "h4" > Create a message</ Typography >
22
22
{ error && (
23
23
< Typography variant = "body1" sx = { { color : "coral" } } >
Original file line number Diff line number Diff line change 3
3
Box ,
4
4
Container ,
5
5
Link ,
6
+ Stack ,
6
7
Toolbar ,
7
8
Typography ,
8
9
} from "@mui/material" ;
@@ -34,8 +35,10 @@ export const FrontPage = () => {
34
35
</ AppBar >
35
36
</ Box >
36
37
< Container sx = { { p : 5 } } >
37
- < CreateMessage />
38
- < MessageList />
38
+ < Stack direction = "column" spacing = { 2 } alignItems = "flex-start" >
39
+ < CreateMessage />
40
+ < MessageList />
41
+ </ Stack >
39
42
</ Container >
40
43
</ >
41
44
) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const MessageList = () => {
13
13
setError ( JSON . stringify ( e , null , 2 ) ) ;
14
14
}
15
15
} ;
16
-
16
+
17
17
useEffect ( ( ) => {
18
18
load ( ) ;
19
19
} , [ ] ) ;
@@ -24,7 +24,7 @@ export const MessageList = () => {
24
24
</ Typography > ;
25
25
}
26
26
return (
27
- < Stack direction = "column" spacing = { 2 } >
27
+ < Stack direction = "column" spacing = { 2 } alignItems = "flex-start" >
28
28
< Button variant = "contained" color = "primary" onClick = { load } >
29
29
Load messages
30
30
</ Button >
You can’t perform that action at this time.
0 commit comments