Skip to content

Commit

Permalink
(feat) O3-3866: Allow customized message/dialog for warning when clos…
Browse files Browse the repository at this point in the history
…ing workspace

remove unused injection of title into workspace
  • Loading branch information
mogoodrich committed Sep 5, 2024
1 parent ca03670 commit 0d3f54a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export function WorkspaceRenderer({ workspace, additionalPropsFromPage }: Worksp
const props = useMemo(
() =>
workspace && {
title: workspace.title,
closeWorkspace: workspace.closeWorkspace,
closeWorkspaceWithSavedChanges: workspace.closeWorkspaceWithSavedChanges,
promptBeforeClosing: workspace.promptBeforeClosing,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import { WorkspaceRenderer } from './workspace-renderer.component';
import { getWorkspaceFamilyStore, OpenWorkspace } from '../workspaces';
import { getWorkspaceFamilyStore } from '../workspaces';

const mockFn = jest.fn();

Expand Down Expand Up @@ -34,7 +34,6 @@ describe('WorkspaceRenderer', () => {
closeWorkspace: mockedCloseWorkspace,
name: 'workspace-name',
load: mockedLoadFn,
title: 'Workspace title',
closeWorkspaceWithSavedChanges: mockedCloseWorkspaceWithSavedChanges,
promptBeforeClosing: mockedPromptBeforeClosing,
setTitle: mockedSetTitle,
Expand All @@ -57,7 +56,6 @@ describe('WorkspaceRenderer', () => {
expect(mockFn).toHaveBeenCalledWith({
config: 'file-content',
mountParcel: undefined,
title: 'Workspace title',
closeWorkspace: mockedCloseWorkspace,
closeWorkspaceWithSavedChanges: mockedCloseWorkspaceWithSavedChanges,
promptBeforeClosing: mockedPromptBeforeClosing,
Expand Down

0 comments on commit 0d3f54a

Please sign in to comment.