-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta-testers' of https://github.com/PeruibeTEC/Mobile i…
…nto beta-testers
- Loading branch information
Showing
14 changed files
with
347 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
src/screens/DetailRestaurant/components/AvaliationCard/index.tsx
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
src/screens/DetailRestaurant/components/AvaliationCard/styles.ts
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
src/screens/DetailRestaurant/components/EvaluationCard/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import React from 'react'; | ||
import MaterialIcons from '@expo/vector-icons/MaterialIcons'; | ||
|
||
import { Text } from 'react-native'; | ||
import normalize from '../../../../utils/normalizeSize'; | ||
|
||
import { | ||
ContainerCard, | ||
BoxRating, | ||
Rating, | ||
RatingText, | ||
EvaluationContainer, | ||
LinkToEvaluations, | ||
EvaluationNow, | ||
Footer, | ||
Header, | ||
Divider, | ||
} from './styles'; | ||
|
||
interface IProps { | ||
numberOfStars: number; | ||
totalEvaluations: number; | ||
} | ||
|
||
const EvaluationCard: React.FC<IProps> = ({ | ||
numberOfStars, | ||
totalEvaluations, | ||
}) => { | ||
return ( | ||
<ContainerCard> | ||
<Header> | ||
<BoxRating> | ||
<Rating>{numberOfStars}</Rating> | ||
<MaterialIcons name="star" color="#fff" size={normalize(24)} /> | ||
</BoxRating> | ||
|
||
<EvaluationContainer> | ||
<RatingText>4.5 de 5 estrelas</RatingText> | ||
|
||
<LinkToEvaluations> | ||
{`(${totalEvaluations} Avaliações)`} | ||
</LinkToEvaluations> | ||
</EvaluationContainer> | ||
</Header> | ||
|
||
<Divider /> | ||
|
||
<Footer> | ||
<EvaluationNow>Avalie agora!</EvaluationNow> | ||
|
||
<Text style={{ marginHorizontal: 8, color: '#fff' }}>•</Text> | ||
|
||
<MaterialIcons name="star-border" color="#D4F5FF" size={24} /> | ||
<MaterialIcons name="star-border" color="#D4F5FF" size={24} /> | ||
<MaterialIcons name="star-border" color="#D4F5FF" size={24} /> | ||
<MaterialIcons name="star-border" color="#D4F5FF" size={24} /> | ||
<MaterialIcons name="star-border" color="#D4F5FF" size={24} /> | ||
</Footer> | ||
</ContainerCard> | ||
); | ||
}; | ||
|
||
export default EvaluationCard; |
Oops, something went wrong.