fixed the centering of the gate cards
This commit is contained in:
parent
fbc8703ae4
commit
d5f3cb727c
2 changed files with 5 additions and 9 deletions
|
|
@ -115,17 +115,13 @@ export default function Gate(props: Props) {
|
|||
};
|
||||
|
||||
useEffect(() => {
|
||||
console.log(gateID)
|
||||
let key = gateID;
|
||||
let kind = "gate";
|
||||
if (as) {
|
||||
key = as;
|
||||
kind = "team";
|
||||
}
|
||||
console.log(key)
|
||||
console.log(kind)
|
||||
userAPI.getUser(user.id(), { key: key, kind: kind } as Scope).then(resp => {
|
||||
console.log(resp)
|
||||
setPermissions(resp.permissions);
|
||||
});
|
||||
}, [as, gateID, userAPI, user]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue