Skip to content

Commit 32719e5

Browse files
Merge branch '04' into 05
2 parents 2e6f898 + c0c281e commit 32719e5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

showcase/src/patterns/index.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ const useClapAnimation = ({
124124
return animationTimeline
125125
}
126126
/** ====================================
127-
* 🔰 MediumClap
128-
==================================== **/
127+
* 🔰 MediumClap
128+
==================================== **/
129129
const initialState = {
130130
count: 0,
131131
countTotal: generateRandomNumber(500, 10000),
@@ -168,7 +168,6 @@ const MediumClap = ({
168168
const isControlled = !!values
169169

170170
const handleClapClick = () => {
171-
// 👉 prop from HOC
172171
animationTimeline.replay()
173172
isControlled
174173
? onClap()
@@ -226,16 +225,16 @@ const MediumClap = ({
226225
}
227226

228227
/** ====================================
229-
* 🔰SubComponents
230-
Smaller Component used by <MediumClap />
231-
==================================== **/
228+
* 🔰SubComponents
229+
Smaller Component used by <MediumClap />
230+
==================================== **/
232231

233232
const ClapIcon = ({ className = '', style: userStyles = {} }) => {
234233
const { isClicked } = useContext(MediumClapContext)
235234
const classNames = [styles.icon, isClicked ? styles.checked : '', className]
236235
.join(' ')
237236
.trim()
238-
237+
239238
return (
240239
<span>
241240
<svg
@@ -297,10 +296,10 @@ MediumClap.Total = CountTotal
297296
MediumClap.Info = ClapInfo
298297

299298
/** ====================================
300-
* 🔰USAGE
301-
Below's how a potential user
302-
may consume the component API
303-
==================================== **/
299+
* 🔰USAGE
300+
Below's how a potential user
301+
may consume the component API
302+
==================================== **/
304303

305304
const MAXIMUM_USER_CLAP = 10
306305
const INITIAL_STATE = {

0 commit comments

Comments
 (0)