parent
3aa39f779b
commit
e792b34219
@ -1,15 +1,11 @@ |
|||||||
import React from 'react'; |
import React from 'react'; |
||||||
|
|
||||||
import { Action, ActionProps } from '../Action'; |
import { Action, Props as ActionProps } from '../Item/Action'; |
||||||
|
|
||||||
export function Remove(props: ActionProps) { |
export function Remove(props: ActionProps) { |
||||||
return ( |
return ( |
||||||
<Action |
<Action |
||||||
{...props} |
{...props} |
||||||
active={{ |
|
||||||
fill: 'rgba(255, 70, 70, 0.95)', |
|
||||||
background: 'rgba(255, 70, 70, 0.1)', |
|
||||||
}} |
|
||||||
> |
> |
||||||
<i className="fas fa-times"></i> |
<i className="fas fa-times"></i> |
||||||
</Action> |
</Action> |
@ -1,6 +1,6 @@ |
|||||||
import React, { forwardRef } from 'react'; |
import React, { forwardRef } from 'react'; |
||||||
|
|
||||||
import { Action, ActionProps } from '../Action'; |
import { Action, Props as ActionProps } from './Action'; |
||||||
|
|
||||||
export const Handle = forwardRef<HTMLButtonElement, ActionProps>( |
export const Handle = forwardRef<HTMLButtonElement, ActionProps>( |
||||||
(props, ref) => { |
(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 { 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 { Container } from './Container'; |
||||||
export type { ContainerProps } 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