//old code
import React, {useState} from "react";
import {Box, Button, HStack, Image, Input, Stack, Text,} from "@chakra-ui/react";
import Rating from "react-rating";
let fullstar =
"https://firebasestorage.googleapis.com/v0/b/aime2-322411.appspot.com/o/star_full.svg?alt=media&token=0347de6c-7f17-4a68-b835-b8b66b7c0a35";
let emptystar =
"https://firebasestorage.googleapis.com/v0/b/aime2-322411.appspot.com/o/star_empty.svg?alt=media&token=28d9c94a-0169-4d6a-88df-e75d3fb35fba";
interface ratingProps {
title: String;
setReviews: any;
rating: number;
}
const Ratings = (props: ratingProps) => {
const {setReviews, rating} = props;
return (
{props.title}
}
fullSymbol={}
onClick={(i) => setReviews(i)}
initialRating={rating}
/>
);
};
const BabuActivityReview = (props: any) => {
const {onNextFunction} = props;
const [note, setNote] = useState();
const reviewStarEmpty =
"https://firebasestorage.googleapis.com/v0/b/imagestorage-7b2d2.appspot.com/o/reviewStar.svg?alt=media&token=1878da4e-f096-482c-8a85-ab7c22b2b9d7";
const [reviews, setReviews] = useState(0);
const [reviews2, setReviews2] = useState(0);
const [reviews3, setReviews3] = useState(0);
const [reviews4, setReviews4] = useState(0);
function onNext() {
onNextFunction();
}
return (
What did you think of the activity?
Notes / Comments
{
setNote(e.target.value);
}}
_placeholder={{
fontSize: "14px",
fontFamily: "MaisonMedium",
fontStyle: "normal",
fontWeight: "400",
lineHeight: "24px",
textAlign: "left",
letterSpacing: "0.04px",
}}
_focus={{
borderBottom: "1px solid #ADB4C7",
}}
borderBottom="1px solid #ADB4C7"
borderRadius="none"
isRequired
/>
);
};
export default BabuActivityReview;
//new code
// import React, { useState } from "react";
// import './auth.css'
// import {
// Stack,
// HStack,
// Textarea,
// Button,
// Box,
// Text,
// Center,
// Flex,
// Select,
// Image,
// Input,
// InputGroup,
// InputRightElement,
// InputLeftElement,
// } from "@chakra-ui/react";
//
// interface ratingProps{
// title:String,
// }
//
// const BabuActivityReview = () => {
// const [note, setNote] = useState();
// const reviewStarEmpty =
// "https://firebasestorage.googleapis.com/v0/b/imagestorage-7b2d2.appspot.com/o/reviewStar.svg?alt=media&token=1878da4e-f096-482c-8a85-ab7c22b2b9d7";
// const Rating=(props:ratingProps)=>{
// return(
//
//
// {props.title}
//
//
//
//
//
//
//
//
//
// )
// }
//
// return (
//
//
//
//
//
// What did you think of the activity?
//
//
//
//
//
//
//
//
//
//
//
// Notes / Comments
//
// {
// setNote(e.target.value);
// }}
// _placeholder={{
// fontSize: "14px",
// fontFamily: "MaisonMedium",
// fontStyle: "normal",
// fontWeight: "400",
// lineHeight: "24px",
// textAlign: "left",
// letterSpacing: "0.04px",
// }}
// _focus={{
// borderBottom: "1px solid #ADB4C7",
// }}
// borderBottom="1px solid #ADB4C7"
// borderRadius="none"
// isRequired
// />
//
//
//
//
//
//
//
//
// );
// };
//
// export default BabuActivityReview;