Skip to content
Snippets Groups Projects
Unverified Commit e8c4488e authored by Christopher Hanna Johnson's avatar Christopher Hanna Johnson Committed by GitHub
Browse files

Merge pull request #1745 from...

Merge pull request #1745 from ProjectMirador/1727-divide-windowtopbarbuttons-into-component-and-container

Divide <WindowTopBarButtons/> into component and container (part of #1727).
parents 5f516916 ec344ad2
Branches
Tags
No related merge requests found
import React from 'react';
import { shallow } from 'enzyme';
import createStore from '../../../src/state/createStore';
import { WindowTopBarButtons } from '../../../src/components/WindowTopBarButtons';
import WindowTopBarButtons from '../../../src/components/WindowTopBarButtons';
describe('WindowTopBarButtons', () => {
let wrapper;
......
......
......@@ -5,7 +5,7 @@ import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import Toolbar from '@material-ui/core/Toolbar';
import classNames from 'classnames';
import ConnectedWindowTopBarButtons from './WindowTopBarButtons';
import WindowTopBarButtons from '../containers/WindowTopBarButtons';
import ns from '../config/css-ns';
/**
......@@ -36,7 +36,7 @@ class WindowTopBar extends Component {
<Typography variant="h3" noWrap color="inherit" className={classes.typographyBody}>
{this.titleContent()}
</Typography>
<ConnectedWindowTopBarButtons windowId={windowId} />
<WindowTopBarButtons windowId={windowId} />
<Button color="inherit" className={ns('window-close')} aria-label="Close Window" onClick={removeWindow}>&times;</Button>
</Toolbar>
);
......
......
import React, { Component } from 'react';
import miradorWithPlugins from '../lib/miradorWithPlugins';
/**
*
*/
export class WindowTopBarButtons extends Component {
class WindowTopBarButtons extends Component {
/**
* render
*
......@@ -15,4 +14,4 @@ export class WindowTopBarButtons extends Component {
}
}
export default miradorWithPlugins(WindowTopBarButtons);
export default WindowTopBarButtons;
import miradorWithPlugins from '../lib/miradorWithPlugins';
import WindowTopBarButtons from '../components/WindowTopBarButtons';
export default miradorWithPlugins(WindowTopBarButtons);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment