Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gatsby Theme Onegeo
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OneGeo Suite
Libs
Gatsby Theme Onegeo
Commits
4678126f
Commit
4678126f
authored
1 year ago
by
Julien MARGAIL
Browse files
Options
Downloads
Patches
Plain Diff
use heroicons
parent
4232d569
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Text.tsx
+8
-22
8 additions, 22 deletions
src/components/Text.tsx
with
8 additions
and
22 deletions
src/components/Text.tsx
+
8
−
22
View file @
4678126f
import
React
from
"
react
"
import
Button
from
"
./core/Button
"
import
{
twMerge
}
from
"
tailwind-merge
"
import
{
InformationCircleIcon
}
from
"
@heroicons/react/outline
"
import
{
Button
}
from
"
@onegeo-suite/gatsby-theme-onegeo
"
interface
IText
{
title
?:
string
...
...
@@ -29,30 +30,15 @@ const Text = (props: IText) => {
oClass
.
title
)
}
>
{
title
}
{
"
"
}
{
title
}
{
oTooltip
.
title
?
(
<
div
className
=
"tooltip tooltip-
base-100
"
<
span
className
=
"tooltip tooltip-
info text-info ml-2 font-normal
"
data-tip
=
{
oTooltip
.
title
}
>
<
svg
xmlns
=
"http://www.w3.org/2000/svg"
fill
=
"none"
viewBox
=
"0 0 24 24"
stroke
=
"currentColor"
strokeWidth
=
{
2
}
className
=
"text-secondary h-5 w-5 cursor-pointer"
>
<
path
strokeLinecap
=
"round"
strokeLinejoin
=
"round"
d
=
"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
/>
</
svg
>
</
div
>
)
:
(
<></>
)
}
<
InformationCircleIcon
className
=
" h-5 w-5 cursor-pointer"
/>
</
span
>
)
:
null
}
</
h2
>
)
}
{
content
&&
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment