feat: refactoring casl permission checks for recursive nested operations (#778)
* feat: nested casl abilities * fix: remove unused packages * Fixes * Fix createMany broken * Fix lint * Fix lint * Fix lint * Fix lint * Fixes * Fix CommentThread * Fix bugs * Fix lint * Fix bugs * Fixed auto routing * Fixed app path --------- Co-authored-by: Charles Bochet <charles@twenty.com> Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -19,11 +19,11 @@ export function ButtonGroup({ children, variant, size }: ButtonGroupProps) {
|
||||
let position: ButtonPosition;
|
||||
|
||||
if (index === 0) {
|
||||
position = 'left';
|
||||
position = ButtonPosition.Left;
|
||||
} else if (index === children.length - 1) {
|
||||
position = 'right';
|
||||
position = ButtonPosition.Right;
|
||||
} else {
|
||||
position = 'middle';
|
||||
position = ButtonPosition.Middle;
|
||||
}
|
||||
|
||||
const additionalProps: any = { position };
|
||||
|
||||
Reference in New Issue
Block a user