[explore] refactor slice action button group (#1074)

* pull explore actions button group into component

* use button component

* make sure we render all action buttons

* test that embed code is correct

* don't need before each

* generalize modal trigger for use with plain links or icons
This commit is contained in:
Alanna Scott
2016-09-20 13:45:27 -07:00
committed by GitHub
parent 32980a653c
commit 0e7af8d8a6
17 changed files with 592 additions and 203 deletions

View File

@@ -0,0 +1,17 @@
import React from 'react';
import { expect } from 'chai';
import { describe, it } from 'mocha';
import CopyToClipboard from '../../../javascripts/components/CopyToClipboard';
describe('CopyToClipboard', () => {
const defaultProps = {
text: 'some text to copy',
};
it('renders', () => {
expect(
React.isValidElement(<CopyToClipboard {...defaultProps} />)
).to.equal(true);
});
});