mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-28 04:11:16 +01:00
Refactor classname usage
This commit is contained in:
@@ -81,12 +81,14 @@ function BaseStack({ className, items, justify, as = 'div', ...props }: BaseStac
|
||||
const Component = as;
|
||||
return (
|
||||
<Component
|
||||
className={classnames(className, 'flex flex-grow-0', {
|
||||
'items-center': items === 'center',
|
||||
'items-start': items === 'start',
|
||||
'justify-start': justify === 'start',
|
||||
'justify-end': justify === 'end',
|
||||
})}
|
||||
className={classnames(
|
||||
className,
|
||||
'flex flex-grow-0',
|
||||
items === 'center' && 'items-center',
|
||||
items === 'start' && 'items-start',
|
||||
justify === 'start' && 'justify-start',
|
||||
justify === 'end' && 'justify-end',
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user