Skip to content

Commit

Permalink
Replaced mergeStrings with cls utils
Browse files Browse the repository at this point in the history
  • Loading branch information
theoplawinski committed Sep 12, 2023
1 parent 88884e4 commit 19b09d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/front/src/components/baseButton/BaseButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { MutableRefObject } from "react"
import css from "./BaseButton.module.less"
import { Link, openRoute, TOpenRouteParams } from "@cher-ami/router"
import { mergeStrings as merge } from "@cher-ami/utils"
import { cls } from "@cher-ami/utils"
import debug from "@wbe/debug"
import { browserOnly } from "@cher-ami/utils"

Expand Down Expand Up @@ -47,17 +47,17 @@ const log = debug(`front:${componentName}`)
*/
function BaseButton(props: IProps, ref: MutableRefObject<any>) {
const commonContent = (
<div className={merge([css.wrapper])}>
<div className={cls(css.wrapper)}>
<div className={css.content}>{props.label}</div>
</div>
)

const rootClassName: string = merge([
const rootClassName: string = cls(
css.root,
props.className,
css[`root_${props.type}`],
css[`root_${props.tag}`],
])
css[`root_${props.tag}`]
)

/**
* Internal
Expand Down

0 comments on commit 19b09d7

Please sign in to comment.