Skip to content
Snippets Groups Projects
Commit 8de17d5a authored by Jack Reed's avatar Jack Reed
Browse files

Move "isWorkspaceFullScreen" back to the workspace state in the selector

parent 034275f2
Branches
Tags
No related merge requests found
......@@ -3,7 +3,6 @@ import {
getShowZoomControlsConfig,
getTheme,
getWorkspaceType,
getFullScreenEnabled,
getContainerId,
} from '../../../src/state/selectors';
......@@ -57,15 +56,6 @@ describe('getWorkspaceType', () => {
});
});
describe('getFullScreenEnabled', () => {
it('returns the workspace configuration for full screen', () => {
const state = { config: { workspace: { isFullscreenEnabled: true } } };
expect(getFullScreenEnabled(state)).toEqual(true);
});
});
describe('getContainerId', () => {
it('returns the container id', () => {
const state = { config: { id: 'mirador' } };
......
import {
getFullScreenEnabled,
} from '../../../src/state/selectors';
describe('getFullScreenEnabled', () => {
it('returns the workspace configuration for full screen', () => {
const state = { workspace: { isFullscreenEnabled: true } };
expect(getFullScreenEnabled(state)).toEqual(true);
});
});
......@@ -34,11 +34,6 @@ export const getWorkspaceType = createSelector(
({ workspace }) => workspace.type,
);
export const getFullScreenEnabled = createSelector(
[getConfig],
({ workspace }) => workspace.isFullscreenEnabled,
);
export const getContainerId = createSelector(
[getConfig],
({ id }) => id,
......
......@@ -3,3 +3,4 @@ export * from './canvases';
export * from './config';
export * from './manifests';
export * from './windows';
export * from './workspace';
import { createSelector } from 'reselect';
/** */
function getWorkspace(state) {
return state.workspace;
}
export const getFullScreenEnabled = createSelector(
[getWorkspace],
workspace => workspace.isFullscreenEnabled,
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment