mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
make caret flip on card open
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
|
||||
const CardCaret = ({ isHighlighted, toggle }) => {
|
||||
let classes = (isHighlighted)
|
||||
const CardCaret = ({ isOpen, toggle }) => {
|
||||
let classes = (isOpen)
|
||||
? 'arrow-down'
|
||||
: 'arrow-down folded'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user