fix: lower role user cannot update higher role user (#1048)

* fix: user role update

* chore: update project member update service type
This commit is contained in:
Aaryan Khandelwal 2023-05-15 23:58:41 +05:30 committed by GitHub
parent abe021071c
commit 8c707cc544
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 101 additions and 72 deletions

View file

@ -99,9 +99,9 @@ const EmojiIconPicker: React.FC<Props> = ({
<div className="grid grid-cols-8 gap-2">
{recentEmojis.map((emoji) => (
<button
key={emoji}
type="button"
className="flex h-4 w-4 select-none items-center justify-between text-sm"
key={emoji}
onClick={() => {
onChange(emoji);
setIsOpen(false);
@ -147,6 +147,7 @@ const EmojiIconPicker: React.FC<Props> = ({
"#000000",
].map((curCol) => (
<span
key={curCol}
className="h-4 w-4 cursor-pointer rounded-full"
style={{ backgroundColor: curCol }}
onClick={() => setActiveColor(curCol)}