mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
use react-bootstrap for Subscribe button column
This commit is contained in:
parent
9cd9dcaa3e
commit
d1cbd6a5b4
1 changed files with 7 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import * as React from "react";
|
||||
import { Button } from "react-bootstrap";
|
||||
import { Column, RowRenderProps } from "react-table";
|
||||
|
||||
export const DetailsButton = {
|
||||
|
|
@ -14,12 +15,14 @@ export const DetailsButton = {
|
|||
const Expander = (props: RowRenderProps) =>
|
||||
<div>
|
||||
{props.isExpanded
|
||||
? <button className="btn btn-primary btn-block active fl-btn-link"
|
||||
? <Button
|
||||
variant={'primary'}
|
||||
title={`Collapse details about ${props.row.name}.`}>
|
||||
Details
|
||||
</button>
|
||||
: <button className="btn btn-primary btn-block fl-btn-link"
|
||||
</Button>
|
||||
: <Button
|
||||
variant={'primary'}
|
||||
title={`Learn more about ${props.row.name}.`}>
|
||||
Details
|
||||
</button>}
|
||||
</Button>}
|
||||
</div>;
|
||||
Loading…
Reference in a new issue