Commit 247f7eff authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Move TabHeader and TabPanel components to a common location

parent 5f0e7b76
...@@ -8,11 +8,11 @@ import { VersionData } from '../helpers/version-data'; ...@@ -8,11 +8,11 @@ import { VersionData } from '../helpers/version-data';
import { withServices } from '../service-context'; import { withServices } from '../service-context';
import type { SessionService } from '../services/session'; import type { SessionService } from '../services/session';
import { useSidebarStore } from '../store'; import { useSidebarStore } from '../store';
import TabHeader from './ShareDialog/TabHeader';
import TabPanel from './ShareDialog/TabPanel';
import SidebarPanel from './SidebarPanel'; import SidebarPanel from './SidebarPanel';
import Tutorial from './Tutorial'; import Tutorial from './Tutorial';
import VersionInfo from './VersionInfo'; import VersionInfo from './VersionInfo';
import TabHeader from './tabs/TabHeader';
import TabPanel from './tabs/TabPanel';
type HelpPanelTabProps = { type HelpPanelTabProps = {
/** What the tab's link should say. */ /** What the tab's link should say. */
......
...@@ -4,11 +4,11 @@ import { useState } from 'preact/hooks'; ...@@ -4,11 +4,11 @@ import { useState } from 'preact/hooks';
import { useSidebarStore } from '../../store'; import { useSidebarStore } from '../../store';
import SidebarPanel from '../SidebarPanel'; import SidebarPanel from '../SidebarPanel';
import TabHeader from '../tabs/TabHeader';
import TabPanel from '../tabs/TabPanel';
import ExportAnnotations from './ExportAnnotations'; import ExportAnnotations from './ExportAnnotations';
import ImportAnnotations from './ImportAnnotations'; import ImportAnnotations from './ImportAnnotations';
import ShareAnnotations from './ShareAnnotations'; import ShareAnnotations from './ShareAnnotations';
import TabHeader from './TabHeader';
import TabPanel from './TabPanel';
export type ShareDialogProps = { export type ShareDialogProps = {
/** If true, the share tab will be rendered. Defaults to false */ /** If true, the share tab will be rendered. Defaults to false */
......
...@@ -28,8 +28,8 @@ describe('ShareDialog', () => { ...@@ -28,8 +28,8 @@ describe('ShareDialog', () => {
$imports.$mock(mockImportedComponents()); $imports.$mock(mockImportedComponents());
// Don't mock these related components for now // Don't mock these related components for now
$imports.$restore({ $imports.$restore({
'./TabHeader': true, '../tabs/TabHeader': true,
'./TabPanel': true, '../tabs/TabPanel': true,
}); });
$imports.$mock({ $imports.$mock({
'../../store': { useSidebarStore: () => fakeStore }, '../../store': { useSidebarStore: () => fakeStore },
......
...@@ -48,8 +48,8 @@ describe('HelpPanel', () => { ...@@ -48,8 +48,8 @@ describe('HelpPanel', () => {
}); });
$imports.$restore({ $imports.$restore({
// Rendering TabHeader and TabPanel is needed for a11y tests // Rendering TabHeader and TabPanel is needed for a11y tests
'./ShareDialog/TabHeader': true, './tabs/TabHeader': true,
'./ShareDialog/TabPanel': true, './tabs/TabPanel': true,
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment