Skip to content
Snippets Groups Projects
Commit d5e5f335 authored by Julien MARGAIL's avatar Julien MARGAIL
Browse files

fix twMerge syntax

parent 19b4ea6c
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ interface ISocials {
logo: any
url: string
className: string
option?: any
options?: any
}
const Socials = (props: ISocials) => {
......@@ -41,7 +41,7 @@ const Socials = (props: ISocials) => {
const dataSocials = dataDirectus.directus.socials
const { layout, className, option } = props
const { layout, className } = props
const options = props.options ?? {}
const oClass = options.class || {}
......@@ -49,7 +49,8 @@ const Socials = (props: ISocials) => {
return (
<div
className={twMerge(
`flex ${layout == "col" ? "w-8 flex-col" : ""} gap-2`,
"flex gap-2",
layout == "col" ? "w-8 flex-col" : "",
oClass.main
)}
>
......@@ -57,11 +58,8 @@ const Socials = (props: ISocials) => {
return (
<div
className={twMerge(
`tooltip ${
layout == "row"
? "tooltip-top"
: "tooltip-right"
} `,
"tooltip",
layout == "row" ? "tooltip-top" : "tooltip-right",
oClass.social
)}
data-tip={item.name}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment