File tree Expand file tree Collapse file tree 4 files changed +36
-12
lines changed
components/UserAutocomplete Expand file tree Collapse file tree 4 files changed +36
-12
lines changed Original file line number Diff line number Diff line change
1
+ eyJhbGciOiJFZERTQSIsImtpZCI6IjIwMjItMDgtMTIiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJtYWNoaW5lQGNvZGVyLmNvbSIsImV4cCI6MTY3MTQ3OTgyOCwibmJmIjoxNjY1MDg2MjI1LCJpYXQiOjE2NjUwODYyMzQsImxpY2Vuc2VfZXhwaXJlcyI6MTY3MDI3MDIyOCwiYWNjb3VudF90eXBlIjoic2FsZXNmb3JjZSIsImFjY291bnRfaWQiOiIwMDExVTAwMDAxTWVQaW9RQUYiLCJ0cmlhbCI6ZmFsc2UsInZlcnNpb24iOjMsImZlYXR1cmVzIjp7InVzZXJfbGltaXQiOjAsImF1ZGl0X2xvZyI6MSwiYnJvd3Nlcl9vbmx5IjoxLCJzY2ltIjoxLCJ3b3Jrc3BhY2VfcXVvdGEiOjEsInJiYWMiOjF9fQ.wCVLOmifUVXvyq8Wos7iS6vN0GilIaaAOQhEMnsrkyGCE57jNC46KH1kHdJf8l6ZduxgJC7blHqRCkigJz-GDw
Original file line number Diff line number Diff line change @@ -156,6 +156,10 @@ export const useInlineStyle = makeStyles(() => {
156
156
inline : {
157
157
width : "300px" ,
158
158
159
+ "& .MuiFormControl-root" : {
160
+ margin : 0 ,
161
+ } ,
162
+
159
163
"& .MuiInputBase-root" : {
160
164
// Match button small height
161
165
height : 36 ,
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ export const GroupPage: React.FC = () => {
91
91
const { group, permissions } = state . context
92
92
const isLoading = group === undefined || permissions === undefined
93
93
const canUpdateGroup = permissions ? permissions . canUpdateGroup : false
94
+ console . log ( state . value )
94
95
95
96
return (
96
97
< >
Original file line number Diff line number Diff line change @@ -59,24 +59,42 @@ export const groupMachine = createMachine(
59
59
type : "parallel" ,
60
60
states : {
61
61
data : {
62
- invoke : {
63
- src : "loadGroup" ,
64
- onDone : {
65
- actions : [ "assignGroup" ] ,
62
+ initial : "loading" ,
63
+ states : {
64
+ loading : {
65
+ invoke : {
66
+ src : "loadGroup" ,
67
+ onDone : {
68
+ actions : [ "assignGroup" ] ,
69
+ target : "success" ,
70
+ } ,
71
+ onError : {
72
+ actions : [ "displayLoadGroupError" ] ,
73
+ } ,
74
+ } ,
66
75
} ,
67
- onError : {
68
- actions : [ "displayLoadGroupError" ] ,
76
+ success : {
77
+ type : "final" ,
69
78
} ,
70
79
} ,
71
80
} ,
72
81
permissions : {
73
- invoke : {
74
- src : "loadPermissions" ,
75
- onDone : {
76
- actions : [ "assignPermissions" ] ,
82
+ initial : "loading" ,
83
+ states : {
84
+ loading : {
85
+ invoke : {
86
+ src : "loadPermissions" ,
87
+ onDone : {
88
+ actions : [ "assignPermissions" ] ,
89
+ target : "success" ,
90
+ } ,
91
+ onError : {
92
+ actions : [ "displayLoadPermissionsError" ] ,
93
+ } ,
94
+ } ,
77
95
} ,
78
- onError : {
79
- actions : [ "displayLoadPermissionsError" ] ,
96
+ success : {
97
+ type : "final" ,
80
98
} ,
81
99
} ,
82
100
} ,
You can’t perform that action at this time.
0 commit comments