Merge pull request #919 from Bilb/fix-background-pill-divider
move pill divider in react and fix the bgpull/933/head
commit
55c1410793
@ -0,0 +1,18 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
interface ReceivedProps {
|
||||||
|
text: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Needed because of https://github.com/microsoft/tslint-microsoft-contrib/issues/339
|
||||||
|
type Props = ReceivedProps;
|
||||||
|
|
||||||
|
export const PillDivider: React.SFC<Props> = props => {
|
||||||
|
return (
|
||||||
|
<div className="panel-text-divider">
|
||||||
|
<div className="panel-text-divider-line" />
|
||||||
|
<span>{props.text}</span>
|
||||||
|
<div className="panel-text-divider-line" />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue