Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const App = () => {
<Route>
<Route path="/home" element={<StudioHome />} />
Comment thread
bradenmacdonald marked this conversation as resolved.
<Route path="/libraries" element={<StudioHome />} />
<Route path="/libraries-v1" element={<StudioHome />} />

<Route path="/libraries-v1/migrate" element={<LegacyLibMigrationPage />} />
<Route path="/library/create" element={<CreateLibrary />} />
Comment thread
bradenmacdonald marked this conversation as resolved.
<Route path="/library/:libraryId/*" element={<LibraryLayout />} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ describe('<LegacyLibMigrationPage />', () => {

cancelButton.click();

// Should navigate to legacy libraries tab on studio home
// Should navigate to libraries tab on studio home
expect(await screen.findByText('Exit Migration?')).toBeInTheDocument();
const exitButton = screen.getByRole('button', { name: /exit/i });
exitButton.click();

await waitFor(() => {
expect(mockNavigate).toHaveBeenCalledWith('/libraries-v1');
expect(mockNavigate).toHaveBeenCalledWith('/libraries');
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/legacy-libraries-migration/LegacyLibMigrationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const ExitModal = ({
<ModalDialog.CloseButton variant="tertiary">
<FormattedMessage {...messages.exitModalCancelText} />
</ModalDialog.CloseButton>
<Button onClick={() => navigate('/libraries-v1')}>
<Button onClick={() => navigate('/libraries')}>
<FormattedMessage {...messages.exitModalConfirmText} />
</Button>
</ActionRow>
Expand Down
1 change: 0 additions & 1 deletion src/studio-home/StudioHome.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ describe('<StudioHome />', () => {
it('should render a link to the library authoring page when libraries-v2 enabled', () => {
mockUseSelector.mockReturnValue({
...studioHomeMock,
librariesV1Enabled: false,
});
render(<StudioHome />, { path: '/home' });
const createNewLibraryButton = screen.getByRole('link', { name: 'New library' });
Expand Down
2 changes: 0 additions & 2 deletions src/studio-home/StudioHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const StudioHome = () => {
isFiltered,
setShowNewCourseContainer,
canCreateNewLibrary,
librariesV1Enabled,
librariesV2Enabled,
} = useStudioHome();

Expand Down Expand Up @@ -159,7 +158,6 @@ const StudioHome = () => {
showNewCourseContainer={showNewCourseContainer}
onClickNewCourse={() => setShowNewCourseContainer(true)}
isShowProcessing={Boolean(isShowProcessing) && !isFiltered}
librariesV1Enabled={librariesV1Enabled}
librariesV2Enabled={librariesV2Enabled}
/>
</section>
Expand Down
2 changes: 0 additions & 2 deletions src/studio-home/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const useStudioHome = () => {
studioRequestEmail,
inProcessCourseActions,
courseCreatorStatus,
librariesV1Enabled,
librariesV2Enabled,
showNewLibraryV2Button,
} = studioHomeData;
Expand Down Expand Up @@ -116,7 +115,6 @@ const useStudioHome = () => {
canCreateNewLibrary,
isFiltered,
setShowNewCourseContainer,
librariesV1Enabled,
librariesV2Enabled,
};
};
Expand Down
Loading