src/views/InformationPage/InformationPageFavourite.js
//Changes the color of the heart and saves favourite
Changes the color of the heart and saves favourite
Changes the color of the heart and saves favourite
changeColor(value) {
        this.setState({liked: value});
        this.setState({locationId: 1});
        if (value === true) {
            this.saveToFavorites();
        } else {
            this.deleteFromFavorites();
        }
    }
changeColor ( value ) { this . setState ( { liked : value } ) ; this . setState ( { locationId : 1 } ) ; if ( value === true ) { this . saveToFavorites ( ) ; } else { this . deleteFromFavorites ( ) ; } }
Changes the color of the heart and saves favourite
Changes the color of the heart and saves favourite