Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
sisidovski committed Apr 5, 2022
1 parent 97e1ce5 commit 123b81c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions components/nutrition.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*/

export default function Nutrition(props) {
const { nutrition, ammountPer } = props
const { nutrition, amountPer } = props
return (
<div className='bg-white shadow overflow-hidden sm:rounded-lg mt-8'>
<div className='px-4 py-5 sm:px-6'>
<h3 className='text-lg leading-6 font-medium text-gray-900'>Nutrition Facts</h3>
<p className='mt-1 max-w-2xl text-sm text-gray-500'>Ammount per {ammountPer}</p>
<p className='mt-1 max-w-2xl text-sm text-gray-500'>amount per {amountPer}</p>
</div>
<div className='border-t border-gray-200'>
<dl>
Expand Down
14 changes: 7 additions & 7 deletions pages/api/fruits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fruits = [
{
name: 'bananas',
image: '/images/anastasia-eremina-VI2rIoZUrks-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 89,
'Total Fat': '0.3 g',
Expand All @@ -32,7 +32,7 @@ const fruits = [
{
name: 'apples',
image: '/images/tuqa-nabi-71JHj_t-kS0-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 52,
'Total Fat': '0.2 g',
Expand All @@ -46,7 +46,7 @@ const fruits = [
{
name: 'strawberries',
image: '/images/olga-kudriavtseva-CL26_lT3Ygg-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 33,
'Total Fat': '0.3 g',
Expand All @@ -60,7 +60,7 @@ const fruits = [
{
name: 'grapes',
image: '/images/gunter-hoffmann-LYaW8eq3mjs-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 67,
'Total Fat': '0.4 g',
Expand All @@ -74,7 +74,7 @@ const fruits = [
{
name: 'oranges',
image: '/images/mae-mu-9002s2VnOAY-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 47,
'Total Fat': '0.1 g',
Expand All @@ -88,7 +88,7 @@ const fruits = [
{
name: 'watermelon',
image: '/images/floh-maier-aFUHu9WNO3Q-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 30,
'Total Fat': '0.2 g',
Expand All @@ -102,7 +102,7 @@ const fruits = [
{
name: 'blueberries',
image: '/images/davies-designs-studio-34lgO8_OO-o-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 57,
'Total Fat': '0.3 g',
Expand Down
14 changes: 7 additions & 7 deletions pages/api/vegetables/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const vegetables = [
{
name: 'carrots',
image: '/images/louis-hansel-Iu3oWcTi0a4-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 41,
'Total Fat': '0.2 g',
Expand All @@ -32,7 +32,7 @@ const vegetables = [
{
name: 'potatoes',
image: '/images/lars-blankers-B0s3Xndk6tw-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 77,
'Total Fat': '0.1 g',
Expand All @@ -46,7 +46,7 @@ const vegetables = [
{
name: 'tomatoes',
image: '/images/josephine-baran-g4wzhY8qiMw-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 18,
'Total Fat': '0.2 g',
Expand All @@ -60,7 +60,7 @@ const vegetables = [
{
name: 'onions',
image: '/images/mayu-ken-CNZ-9s5p2i8-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 40,
'Total Fat': '0.1 g',
Expand All @@ -74,7 +74,7 @@ const vegetables = [
{
name: 'lettuce',
image: '/images/petr-magera-YLeRHRiRgts-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 15,
'Total Fat': '0.2 g',
Expand All @@ -88,7 +88,7 @@ const vegetables = [
{
name: 'broccoli',
image: '/images/louis-hansel-LpHYbY6Qu_o-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 39,
'Total Fat': '0.07 g',
Expand All @@ -101,7 +101,7 @@ const vegetables = [
{
name: 'corn',
image: '/images/wouter-supardi-salari-HE_MjmWh9eQ-unsplash.jpg',
ammountPer: '100 grams',
amountPer: '100 grams',
nutrition: {
Calories: 86,
'Total Fat': '1.2 g',
Expand Down
4 changes: 2 additions & 2 deletions pages/fruits/[name].js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { middleware } from '../../utils/middleware'
import { usePageTransition } from '../../utils/use-page-transition'

const Item = ({ data }) => {
const { name, image, ammountPer, nutrition } = data
const { name, image, amountPer, nutrition } = data
// Codelab: Add the Shared Element Transitions API.
const ref = usePageTransition()

Expand All @@ -39,7 +39,7 @@ const Item = ({ data }) => {
</div>

<div className='sm:w-2/4 w-full'>
<Nutrition ammountPer={ammountPer} nutrition={nutrition} />
<Nutrition amountPer={amountPer} nutrition={nutrition} />
</div>
</div>
)
Expand Down
4 changes: 2 additions & 2 deletions pages/vegetables/[name].js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Nutrition from '../../components/nutrition'
import { middleware } from '../../utils/middleware'

const Item = ({ data }) => {
const { name, image, ammountPer, nutrition } = data
const { name, image, amountPer, nutrition } = data
return (
<div className={'flex flex-col items-center justify-center py-4 px-4 sm:flex-row'}>
<div className='flex flex-col items-center sm:w-2/4'>
Expand All @@ -34,7 +34,7 @@ const Item = ({ data }) => {
</div>

<div className='sm:w-2/4 w-full'>
<Nutrition ammountPer={ammountPer} nutrition={nutrition} />
<Nutrition amountPer={amountPer} nutrition={nutrition} />
</div>
</div>
)
Expand Down

0 comments on commit 123b81c

Please sign in to comment.