Skip to content

Commit

Permalink
Tidy UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Oct 9, 2024
1 parent 2f684e7 commit ade5457
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions frontend/web/components/ActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import { FC } from 'react'
import classNames from 'classnames'
import Icon from './Icon'
import Button from './base/forms/Button'
import Button, { ButtonType } from './base/forms/Button'

type ActionButtonType = {
onClick: () => void
'data-test'?: string
size?: ButtonType['size']
}

const ActionButton: FC<ActionButtonType> = ({ onClick, ...rest }) => {
const ActionButton: FC<ActionButtonType> = ({
onClick,
size = 'xSmall',
...rest
}) => {
return (
<Button
className={classNames('btn btn-with-icon btn-xs')}
size={size}
className={classNames('btn btn-with-icon')}
data-test={rest['data-test']}
onClick={(e) => {
e.stopPropagation()
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/components/UserAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const FeatureAction: FC<FeatureActionProps> = ({
return (
<div>
<div ref={btnRef}>
<ActionButton onClick={() => setIsOpen(true)} />
<ActionButton size='small' onClick={() => setIsOpen(true)} />
</div>

{isOpen && (
Expand Down
2 changes: 1 addition & 1 deletion frontend/web/components/pages/UsersAndPermissionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ const UsersAndPermissionsInner: FC<UsersAndPermissionsInnerType> = ({
style={{
width: widths[2],
}}
className='table-column text-end'
className='table-column d-flex justify-content-end'
>
<UserAction
onRemove={onRemoveClick}
Expand Down

0 comments on commit ade5457

Please sign in to comment.