Skip to content

Commit f280dfb

Browse files
committed
refactor: update classNames to camelcase because of esbuild
1 parent 1fcffbd commit f280dfb

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/App.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ function App() {
9797
<div>
9898
<div
9999
id="floatAnchor"
100-
className={styles['big-anchor']}
100+
/**
101+
* changed from dash `no-arrow` to camelcase because of:
102+
* https://github.com/indooorsman/esbuild-css-modules-plugin/issues/42
103+
*/
104+
className={styles['bigAnchor']}
101105
onClick={() => {
102106
setToggle((t) => !t)
103107
}}
@@ -117,7 +121,11 @@ function App() {
117121
<div>
118122
<div
119123
id="onClickAnchor"
120-
className={styles['big-anchor']}
124+
/**
125+
* changed from dash `no-arrow` to camelcase because of:
126+
* https://github.com/indooorsman/esbuild-css-modules-plugin/issues/42
127+
*/
128+
className={styles['bigAnchor']}
121129
onClick={(event) => {
122130
handlePositionClick(event)
123131
}}

src/components/Tooltip/Tooltip.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,11 @@ const Tooltip = ({
531531
{(html && <TooltipContent content={html} />) || content || children}
532532
<WrapperElement
533533
className={classNames('react-tooltip-arrow', styles['arrow'], classNameArrow, {
534-
[styles['no-arrow']]: noArrow,
534+
/**
535+
* changed from dash `no-arrow` to camelcase because of:
536+
* https://github.com/indooorsman/esbuild-css-modules-plugin/issues/42
537+
*/
538+
[styles['noArrow']]: noArrow,
535539
})}
536540
style={inlineArrowStyles}
537541
ref={tooltipArrowRef}

0 commit comments

Comments
 (0)