Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
vicotor
frontend
Commits
937e652c
Commit
937e652c
authored
Jul 08, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move logic to Tooltip file
parent
124e2e47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Tooltip.ts
theme/components/Tooltip.ts
+3
-0
index.ts
theme/index.ts
+1
-3
No files found.
theme/components/Tooltip.ts
View file @
937e652c
import
type
{
ComponentStyleConfig
}
from
'
@chakra-ui/theme
'
;
import
type
{
ComponentStyleConfig
}
from
'
@chakra-ui/theme
'
;
import
{
Tooltip
as
TooltipComponent
}
from
'
@chakra-ui/react
'
;
const
Tooltip
:
ComponentStyleConfig
=
{
const
Tooltip
:
ComponentStyleConfig
=
{
baseStyle
:
{
baseStyle
:
{
...
@@ -6,4 +7,6 @@ const Tooltip: ComponentStyleConfig = {
...
@@ -6,4 +7,6 @@ const Tooltip: ComponentStyleConfig = {
},
},
}
}
TooltipComponent
.
defaultProps
=
{
...
TooltipComponent
.
defaultProps
,
hasArrow
:
true
}
export
default
Tooltip
;
export
default
Tooltip
;
theme/index.ts
View file @
937e652c
import
{
extendTheme
,
Tooltip
}
from
'
@chakra-ui/react
'
;
import
{
extendTheme
}
from
'
@chakra-ui/react
'
;
import
typography
from
'
./foundations/typography
'
;
import
typography
from
'
./foundations/typography
'
;
import
borders
from
'
./foundations/borders
'
;
import
borders
from
'
./foundations/borders
'
;
...
@@ -12,6 +12,4 @@ const overrides = {
...
@@ -12,6 +12,4 @@ const overrides = {
components
,
components
,
}
}
Tooltip
.
defaultProps
=
{
...
Tooltip
.
defaultProps
,
hasArrow
:
true
}
export
default
extendTheme
(
overrides
);
export
default
extendTheme
(
overrides
);
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