From 75d43d3f97e035eaac9c92288ab6304d9ae71881 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Tue, 6 Jul 2021 14:52:21 -0500 Subject: [PATCH] fix linting issues --- .../ServerCategoryEditor.styled.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/design-system/organisms/server-category-editor/ServerCategoryEditor.styled.ts b/packages/design-system/organisms/server-category-editor/ServerCategoryEditor.styled.ts index 79684cc..6bad385 100644 --- a/packages/design-system/organisms/server-category-editor/ServerCategoryEditor.styled.ts +++ b/packages/design-system/organisms/server-category-editor/ServerCategoryEditor.styled.ts @@ -6,15 +6,22 @@ export const CategoryActions = styled.div<{ right?: boolean }>` display: flex; flex-direction: row; + & > button { + ${(props) => + props.right + ? css` + margin-left: 5px; + ` + : css` + margin-right: 5px; + `}; + } + ${(props) => props.right && css` justify-content: flex-end; `} - - & > * { - ${(props) => (props.right ? 'margin-left' : 'margin-right')}: 5px; - } `; export const ReorderButton = styled.div`