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
b615838c
Commit
b615838c
authored
Feb 04, 2021
by
Kyle Keating
Committed by
Kyle Keating
Feb 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pascal case frontend-shared components
Add /components folder in frontend-shared
parent
24987f8d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
SvgIcon.js
frontend-shared/src/components/SvgIcon.js
+0
-0
SvgIcon-test.js
frontend-shared/src/components/test/SvgIcon-test.js
+3
-3
index.js
frontend-shared/src/index.js
+1
-1
No files found.
frontend-shared/src/
svg-i
con.js
→
frontend-shared/src/
components/SvgI
con.js
View file @
b615838c
File moved
frontend-shared/src/
test/svg-i
con-test.js
→
frontend-shared/src/
components/test/SvgI
con-test.js
View file @
b615838c
import
{
render
}
from
'preact'
;
import
{
SvgIcon
,
availableIcons
,
registerIcons
}
from
'../
svg-i
con'
;
import
{
SvgIcon
,
availableIcons
,
registerIcons
}
from
'../
SvgI
con'
;
describe
(
'SvgIcon'
,
()
=>
{
// Tests here use DOM APIs rather than Enzyme because SvgIcon uses
...
...
@@ -15,8 +15,8 @@ describe('SvgIcon', () => {
registerIcons
(
{
'arrow-left'
:
require
(
'../../images/icons/arrow-left.svg'
),
'arrow-right'
:
require
(
'../../images/icons/arrow-right.svg'
),
'arrow-left'
:
require
(
'../../
../
images/icons/arrow-left.svg'
),
'arrow-right'
:
require
(
'../../
../
images/icons/arrow-right.svg'
),
},
{
reset
:
true
}
);
...
...
frontend-shared/src/index.js
View file @
b615838c
// Components
export
{
SvgIcon
,
registerIcons
}
from
'./
svg-i
con'
;
export
{
SvgIcon
,
registerIcons
}
from
'./
components/SvgI
con'
;
// Hooks
export
{
useElementShouldClose
}
from
'./hooks/use-element-should-close'
;
...
...
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