parent
d366966191
commit
ee261841bb
@ -1,15 +1,11 @@ |
||||
import React from 'react'; |
||||
|
||||
import { Action, ActionProps } from '../Action'; |
||||
import { Action, Props as ActionProps } from '../Item/Action'; |
||||
|
||||
export function Remove(props: ActionProps) { |
||||
return ( |
||||
<Action |
||||
{...props} |
||||
active={{ |
||||
fill: 'rgba(255, 70, 70, 0.95)', |
||||
background: 'rgba(255, 70, 70, 0.1)', |
||||
}} |
||||
> |
||||
<i className="fas fa-times"></i> |
||||
</Action> |
@ -1,6 +1,6 @@ |
||||
import React, { forwardRef } from 'react'; |
||||
|
||||
import { Action, ActionProps } from '../Action'; |
||||
import { Action, Props as ActionProps } from './Action'; |
||||
|
||||
export const Handle = forwardRef<HTMLButtonElement, ActionProps>( |
||||
(props, ref) => { |
@ -1,2 +0,0 @@ |
||||
export { Action } from './Action'; |
||||
export type { Props as ActionProps } from './Action'; |
@ -1 +0,0 @@ |
||||
export { Handle } from './Handle'; |
@ -1 +0,0 @@ |
||||
export { Remove } from './Remove'; |
@ -1,3 +0,0 @@ |
||||
export { Action } from './Action'; |
||||
export { Handle } from './Handle'; |
||||
export { Remove } from './Remove'; |
@ -1,2 +1,3 @@ |
||||
export { Item } from './Item'; |
||||
export { Action, Handle, Remove } from './components'; |
||||
export { Action } from './Action'; |
||||
export { Handle } from './Handle'; |
||||
|
@ -1,3 +1,3 @@ |
||||
export { Container } from './Container'; |
||||
export type { ContainerProps } from './Container'; |
||||
export { Item, Action, Handle, Remove } from './Item'; |
||||
export { Item, Action, Handle } from './Item'; |
||||
|
Loading…
Reference in new issue