Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
247f7eff
Commit
247f7eff
authored
Nov 29, 2023
by
Alejandro Celaya
Committed by
Alejandro Celaya
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move TabHeader and TabPanel components to a common location
parent
5f0e7b76
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
HelpPanel.tsx
src/sidebar/components/HelpPanel.tsx
+2
-2
ShareDialog.tsx
src/sidebar/components/ShareDialog/ShareDialog.tsx
+2
-2
ShareDialog-test.js
src/sidebar/components/ShareDialog/test/ShareDialog-test.js
+2
-2
TabHeader.tsx
src/sidebar/components/tabs/TabHeader.tsx
+0
-0
TabPanel.tsx
src/sidebar/components/tabs/TabPanel.tsx
+0
-0
HelpPanel-test.js
src/sidebar/components/test/HelpPanel-test.js
+2
-2
No files found.
src/sidebar/components/HelpPanel.tsx
View file @
247f7eff
...
...
@@ -8,11 +8,11 @@ import { VersionData } from '../helpers/version-data';
import
{
withServices
}
from
'../service-context'
;
import
type
{
SessionService
}
from
'../services/session'
;
import
{
useSidebarStore
}
from
'../store'
;
import
TabHeader
from
'./ShareDialog/TabHeader'
;
import
TabPanel
from
'./ShareDialog/TabPanel'
;
import
SidebarPanel
from
'./SidebarPanel'
;
import
Tutorial
from
'./Tutorial'
;
import
VersionInfo
from
'./VersionInfo'
;
import
TabHeader
from
'./tabs/TabHeader'
;
import
TabPanel
from
'./tabs/TabPanel'
;
type
HelpPanelTabProps
=
{
/** What the tab's link should say. */
...
...
src/sidebar/components/ShareDialog/ShareDialog.tsx
View file @
247f7eff
...
...
@@ -4,11 +4,11 @@ import { useState } from 'preact/hooks';
import
{
useSidebarStore
}
from
'../../store'
;
import
SidebarPanel
from
'../SidebarPanel'
;
import
TabHeader
from
'../tabs/TabHeader'
;
import
TabPanel
from
'../tabs/TabPanel'
;
import
ExportAnnotations
from
'./ExportAnnotations'
;
import
ImportAnnotations
from
'./ImportAnnotations'
;
import
ShareAnnotations
from
'./ShareAnnotations'
;
import
TabHeader
from
'./TabHeader'
;
import
TabPanel
from
'./TabPanel'
;
export
type
ShareDialogProps
=
{
/** If true, the share tab will be rendered. Defaults to false */
...
...
src/sidebar/components/ShareDialog/test/ShareDialog-test.js
View file @
247f7eff
...
...
@@ -28,8 +28,8 @@ describe('ShareDialog', () => {
$imports
.
$mock
(
mockImportedComponents
());
// Don't mock these related components for now
$imports
.
$restore
({
'./TabHeader'
:
true
,
'./TabPanel'
:
true
,
'.
./tabs
/TabHeader'
:
true
,
'.
./tabs
/TabPanel'
:
true
,
});
$imports
.
$mock
({
'../../store'
:
{
useSidebarStore
:
()
=>
fakeStore
},
...
...
src/sidebar/components/
ShareDialog
/TabHeader.tsx
→
src/sidebar/components/
tabs
/TabHeader.tsx
View file @
247f7eff
File moved
src/sidebar/components/
ShareDialog
/TabPanel.tsx
→
src/sidebar/components/
tabs
/TabPanel.tsx
View file @
247f7eff
File moved
src/sidebar/components/test/HelpPanel-test.js
View file @
247f7eff
...
...
@@ -48,8 +48,8 @@ describe('HelpPanel', () => {
});
$imports
.
$restore
({
// Rendering TabHeader and TabPanel is needed for a11y tests
'./
ShareDialog
/TabHeader'
:
true
,
'./
ShareDialog
/TabPanel'
:
true
,
'./
tabs
/TabHeader'
:
true
,
'./
tabs
/TabPanel'
:
true
,
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment