mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Remove unused imports and add some types
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import IPostStatus from '../../interfaces/IPostStatus';
|
||||
interface Props {
|
||||
name: string;
|
||||
color: string;
|
||||
}
|
||||
|
||||
const PostStatusLabel = ({
|
||||
id,
|
||||
name,
|
||||
color,
|
||||
}: IPostStatus) => (
|
||||
}: Props) => (
|
||||
<span className="badge" style={{backgroundColor: color, color: 'white'}}>{name}</span>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user