Skip to content

Commit

Permalink
Merge pull request #96 from ReCoded-Org/i95-make_unlist_functional
Browse files Browse the repository at this point in the history
I95 make unlist functional
  • Loading branch information
beyzabostanci authored Aug 30, 2022
2 parents 8a0e097 + 23bb850 commit 3006ad0
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 52 deletions.
51 changes: 25 additions & 26 deletions data/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"coverImage": "https://cdn.pocket-lint.com/r/s/1200x/assets/images/151545-tablets-review-apple-ipad-pro-129-inch-2020-review-business-as-usual-image1-buq5ipfo1e.jpg",
"otherImages": [
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/284824987_5338950829484855_214780658760877871_n.jpg?stp=dst-jpg_s960x960&_nc_cat=104&ccb=1-7&_nc_sid=c48759&_nc_ohc=M-gQTAS1z7kAX-MVi4X&_nc_ht=scontent.fist2-3.fna&oh=00_AT94IYmDMO2vwJ_ObSw94xbw-VRjYp3yTVCgZx89ZfyorA&oe=630D7358",
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/285063090_5668607753171025_7732982259692423018_n.jpg?stp=dst-jpg_s960x960&_nc_cat=108&ccb=1-7&_nc_sid=c48759&_nc_ohc=2MPGM71oJYoAX8mn3Z6&_nc_ht=scontent.fist2-3.fna&oh=00_AT-4obxvIQLeNRiHBW8RW8co5vrDgRfC3xOTiIZwxhOOGQ&oe=630CE122"
"https://www.cultofmac.com/wp-content/uploads/2018/11/15F45C19-AAD9-4E7A-A5FC-98AE1784A920.jpeg?ezimgfmt=ng:webp/ngcb24"
],
"price": 4000,
"category": "Electronics",
Expand Down Expand Up @@ -61,11 +61,11 @@
"id": 3,
"title": "Fuji X-T30",
"description": "Fujifilm x-t30 / 18-55mm xf lens body 2 yıldan fazla garantisi mevcut kozmetik 10/9 lensin garantisi bitmiştir sorunsuz kozmetik 10/9 4k video çekimi yapabilen fotoğrafta hiç çekilmemiştir yedek kamera olarak kullanıldı",
"coverImage": "https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/278118786_4967787439982114_3590710493239008067_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=c48759&_nc_ohc=gUl5qJRA-rkAX949rv3&tn=o1n-iYo_c7xaIWX5&_nc_ht=scontent.fist2-4.fna&oh=00_AT-f1CbJa3hrdKK0IhOLbD5qWOHnLivqz26pCyLXIEWC6Q&oe=630CDF7D",
"coverImage": "https://cdn.mos.cms.futurecdn.net/YXENFXTphTsi7t7ofZFgjn-1200-80.jpg",
"otherImages": [
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/278189843_5037567166298781_126037943000617044_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=c48759&_nc_ohc=rdgSrkzDG6UAX-_PiVM&_nc_ht=scontent.fist2-4.fna&oh=00_AT_lKiRjceufbFr6TJ6DlXy7Y83ce3ME5-Mx9XSs9JqdgQ&oe=630CAAB4",
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/278119416_7682442125106984_8996397283153085214_n.jpg?_nc_cat=104&ccb=1-7&_nc_sid=c48759&_nc_ohc=H4Hat36M3Y0AX_IX1Wg&_nc_ht=scontent.fist2-3.fna&oh=00_AT83-BQSFWpwyBnPQxLDhRb0KXWnlfEEQ09zFah8OC8hBA&oe=630C91E7",
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/278171645_8073548356004754_1859978912100125447_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=c48759&_nc_ohc=ec8ZbuuGeU0AX96vMVI&_nc_ht=scontent.fist2-3.fna&oh=00_AT_wM4BWYeXYMZUTr7_yTBoweUOEjDeZX9FgEgNWA5GihA&oe=630CC9F2"
"https://cdn.mos.cms.futurecdn.net/nVt9ZwPsF37gWXo4mJYxvm.jpg",
"https://www.amateurphotographer.co.uk/wp-content/uploads/2021/12/fujifilm-xt30-markii-sensor.jpg",
"https://fujifilm-x.com/wp-content/uploads/2019/10/x-t30_overview-feature05.jpg"
],
"price": 9000,
"category": "Electronics",
Expand Down Expand Up @@ -177,9 +177,9 @@
"id": 7,
"title": "Iphone 6S",
"description": "Lorem Ipsum is simply dummy text of the printing and type setting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"coverImage": "https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/287586214_8033896030016601_1371150756753587373_n.jpg?stp=dst-jpg_s960x960&_nc_cat=109&ccb=1-7&_nc_sid=c48759&_nc_ohc=Ox3n40FXOE0AX9pcBXs&_nc_ht=scontent.fist2-4.fna&oh=00_AT9yHMtm3AQwK-acalUN3xcj7hjTjjL71SLRh9v-wfYi9g&oe=630D0AD2",
"coverImage": "https://i.pinimg.com/originals/9d/ce/cd/9dcecd397c0698b675c2dd8e98d5472b.jpg",
"otherImages": [
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/282332551_8222564451094539_6461239221990259792_n.jpg?stp=dst-jpg_s960x960&_nc_cat=107&ccb=1-7&_nc_sid=c48759&_nc_ohc=xe8Y7uXRq2sAX8jWhbS&_nc_oc=AQm_TImtqwvDdhxpm3_FL6365WE2eO7T1rsQbohMmHjZJ_arnPf32d4rgsv2DoZOMWk&_nc_ht=scontent.fist2-4.fna&oh=00_AT_1JIuGdTuLJ6eoYa3lbRY2kXrFCaL7DL-w7BP2KKqMpw&oe=630CD7C5",
"https://mobilecity-live.s3.ap-southeast-2.amazonaws.com/wp-content/uploads/2021/03/01015750/RG20-scaled-1-600x450.jpg",
"https://5.imimg.com/data5/SELLER/Default/2021/11/WA/AX/CS/13533677/32-500x500.jpg",
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/281763400_5712114215479346_7724858344702981516_n.jpg?stp=dst-jpg_s960x960&_nc_cat=101&ccb=1-7&_nc_sid=c48759&_nc_ohc=HxXG_YnNaksAX_pKDKM&_nc_ht=scontent.fist2-3.fna&oh=00_AT8PgCFptJ0UU1O7MEPuD2MdRl7yEuOt8_LZC6xBQweA-w&oe=630D4FA5"
],
Expand Down Expand Up @@ -264,11 +264,11 @@
"id": 10,
"title": "Ikea Desk",
"description": "Lorem Ipsum is simply dummy text of the printing and type setting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"coverImage": "https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/277012745_4914597008630764_8265782411838054805_n.jpg?stp=dst-jpg_p960x960&_nc_cat=100&ccb=1-7&_nc_sid=c48759&_nc_ohc=Du8cdwmiQsUAX9a5iDS&_nc_oc=AQnfiN45Cy0CZ8ggn7oPc3ETdIE_ulNWv0P-wJAollyTEatNYuqjBR993ahFLROPxtM&_nc_ht=scontent.fist2-4.fna&oh=00_AT-QXzEhYzkttuW1hwnEd4aZu2nfct1vktZw7PrVWh64tw&oe=630D16F2",
"coverImage": "https://media.karousell.com/media/photos/products/2021/11/21/alex_ikea_desk_grey_turquoise__1637483779_9be63ab8_progressive.jpg",
"otherImages": [
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/276984252_5026350064090031_2728499070378499471_n.jpg?stp=dst-jpg_s960x960&_nc_cat=101&ccb=1-7&_nc_sid=c48759&_nc_ohc=nSWWwFtV_uMAX_utX_C&_nc_ht=scontent.fist2-3.fna&oh=00_AT-9iZMOONWvmo0Sx4_wOLI5hWwxqQW7CDUlhjAgzGXkUA&oe=630C95ED",
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/277361079_5229632163727076_5958317045279849172_n.jpg?stp=dst-jpg_s960x960&_nc_cat=105&ccb=1-7&_nc_sid=c48759&_nc_ohc=b2PxUvwTJ5cAX-71VmX&_nc_ht=scontent.fist2-4.fna&oh=00_AT97CXAqUF2VVUUWwJjNoFYWBoRCWAzi_2BnmQrF23T-ZA&oe=630C602C",
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/277404804_4839285899512432_5226951683259847381_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=c48759&_nc_ohc=w2SEe0h-5icAX9JkQ3z&_nc_oc=AQk-h-q56Km8eaim062lzd8V7L55hhi3acfR_xP7u--VRq0fgm_uUtqZF3lddHpMSWA&_nc_ht=scontent.fist2-4.fna&oh=00_AT__aucNPGxuRttOXnN6IzyTL8gBh4bSgF5_yK3-lKUuSg&oe=630C277B"
"https://media.karousell.com/media/photos/products/2022/4/14/ikea_alex_desk_1649909869_36b33efa_progressive.jpg",
"https://media.karousell.com/media/photos/products/2022/4/14/ikea_alex_desk_1649909869_9f39ae5b_progressive.jpg",
"https://media.karousell.com/media/photos/products/2021/6/15/ikea_alex_desk_navy_blue_1623720950_5bfe020f_progressive"
],
"price": 1200,
"category": "Furniture",
Expand Down Expand Up @@ -322,11 +322,10 @@
"id": 12,
"title": "Xiaomi Scooter",
"description": "2021 10. Ayda alındı. 300 km yi geçmemiştir. Garantisi halla 14 ay devam etmekte. 4 tane yedek lastiği var.Çok kullanışlıdır. Pratik tüm işlerinizi halledebilirsiniz",
"coverImage": "https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/298307120_5406192539461023_2928189103818592849_n.jpg?stp=dst-jpg_p720x720&_nc_cat=110&ccb=1-7&_nc_sid=c48759&_nc_ohc=3io1CfIYmn4AX_jEDCA&_nc_ht=scontent.fist2-4.fna&oh=00_AT8zab_g3MpZyZB3iivI0FSdRGrJ-UbqmQ0k-2IVYR5Shw&oe=630D4642",
"coverImage": "https://d1fmx1rbmqrxrr.cloudfront.net/cnet/i/edit/2018/06/Xiaomi-Mi-365-electric-scooter-big.jpg",
"otherImages": [
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/289905670_5119866678140854_8815095366301653996_n.jpg?stp=dst-jpg_p720x720&_nc_cat=111&ccb=1-7&_nc_sid=c48759&_nc_ohc=wadHubahL5EAX9ZNx7C&_nc_ht=scontent.fist2-4.fna&oh=00_AT-RbLmfflL-OnnuAeXin8bAEKv-N2-B_RUWUJFH2NHStA&oe=630D1F10",
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/299064536_5141514929308235_2035379820143045043_n.jpg?stp=dst-jpg_p720x720&_nc_cat=101&ccb=1-7&_nc_sid=c48759&_nc_ohc=3ZPXDAy2qAQAX8PP2Yp&tn=o1n-iYo_c7xaIWX5&_nc_ht=scontent.fist2-3.fna&oh=00_AT92oiRpr2sIdiJOxhLupd5wXYNhM4oH94Vn_nSzcCvpFQ&oe=630BDE69",
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/296104304_5377838278928480_315049810410863422_n.jpg?stp=dst-jpg_p720x720&_nc_cat=110&ccb=1-7&_nc_sid=c48759&_nc_ohc=0A-0iLg12xgAX9C-cFV&_nc_ht=scontent.fist2-4.fna&oh=00_AT_yYxECFvuhEQBYvOa_y4BKabZ6I_Ml06XljWjXLZBpEQ&oe=630B8970"
"https://2.bp.blogspot.com/-mY0gEK3es-s/WSQCgB1tXWI/AAAAAAAACFk/4Xzab91Zxy8kkOKVgVmen-sm_hlH2jKKACLcB/s1600/IMG_20170521_160036.jpg",
"https://sellmyscooter.com/wp-content/uploads/2021/06/xiaomi-mi-scooter-essential-lite-cover.jpg"
],
"price": 1250,
"category": "Two-wheeler",
Expand All @@ -351,11 +350,12 @@
"id": 13,
"title": "Corner Sofa",
"description": "Lorem Ipsum is simply dummy text of the printing and type setting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"coverImage": "https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/287610111_5344994178929619_6950814968877988523_n.jpg?stp=dst-jpg_p720x720&_nc_cat=111&ccb=1-7&_nc_sid=c48759&_nc_ohc=FjGms00pzjgAX-1zgYn&_nc_ht=scontent.fist2-4.fna&oh=00_AT8GvQsRE6mBCYx-UCT-BXn65OAeHwZWhqpnXKkJfBexvQ&oe=630D29B4",
"coverImage": "https://habbio.co.uk/wp-content/uploads/2022/02/HB04-Small-Corner-Pickle-DJJ_7051.jpg",
"otherImages": [
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/288277421_5467211756674555_3699558628239848453_n.jpg?stp=dst-jpg_p720x720&_nc_cat=108&ccb=1-7&_nc_sid=c48759&_nc_ohc=OIhJfmR7QFUAX_80vlx&tn=o1n-iYo_c7xaIWX5&_nc_ht=scontent.fist2-3.fna&oh=00_AT_o1NYd3GzMVT0dTihx3GQZ9vjV_jqrRH7euTL9NEilDg&oe=630C7D4A",
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/287248771_6140967442624239_638732090207029884_n.jpg?stp=dst-jpg_p720x720&_nc_cat=105&ccb=1-7&_nc_sid=c48759&_nc_ohc=sDZx23HPI78AX93mb9O&_nc_ht=scontent.fist2-4.fna&oh=00_AT_B2R_r8ETA216dSM5KOSRUXRKUIWkgznwCWllg1wUIww&oe=630C13D3",
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/287610111_5344994178929619_6950814968877988523_n.jpg?stp=dst-jpg_p720x720&_nc_cat=111&ccb=1-7&_nc_sid=c48759&_nc_ohc=FjGms00pzjgAX-1zgYn&_nc_ht=scontent.fist2-4.fna&oh=00_AT8GvQsRE6mBCYx-UCT-BXn65OAeHwZWhqpnXKkJfBexvQ&oe=630D29B4"
"https://habbio.co.uk/wp-content/uploads/2022/02/HB04-small-corner-Pickle-Side-960x640.jpg",
"https://habbio.co.uk/wp-content/uploads/2022/03/HB04-small-corner-Pickle-3Q-960x640.jpg",
"https://habbio.co.uk/wp-content/uploads/2022/02/HB04-small-corner-Pickle-above-960x640.jpg",
"https://habbio.co.uk/wp-content/uploads/2022/03/HB04-Corner-Small-Front-Pickle-Alt-960x640.jpg"
],
"price": 890,
"category": "Furniture",
Expand Down Expand Up @@ -438,9 +438,9 @@
"id": 16,
"title": "Vintage Bookshelf",
"description": "Lorem Ipsum is simply dummy text of the printing and type setting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"coverImage": "https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/295851616_5301564089897000_7710308082266557878_n.jpg?stp=dst-jpg_p720x720&_nc_cat=108&ccb=1-7&_nc_sid=c48759&_nc_ohc=vAAp24AR2VEAX99VKIb&tn=o1n-iYo_c7xaIWX5&_nc_ht=scontent.fist2-3.fna&oh=00_AT8yjoimmnHSJv84ilFh8QJC0sw9Sb5xxIR5LJgtFGHWJg&oe=630C8ECA",
"coverImage": "https://m.media-amazon.com/images/I/71DRJzGdg3L._SL1500_.jpg",
"otherImages": [
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/295466287_5207455849304295_1684081750452773109_n.jpg?stp=dst-jpg_s960x960&_nc_cat=103&ccb=1-7&_nc_sid=c48759&_nc_ohc=Atn7pfaz6csAX_QZppe&_nc_ht=scontent.fist2-3.fna&oh=00_AT_OEuupJinZ5aZ3ny0bIVdyxLW6stCnYtfxO9sx2DM4wg&oe=630BC33C",
"https://m.media-amazon.com/images/I/81mJ25RW-AL._SL1500_.jpg",
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/294399762_6358996720784308_3057233429934220545_n.jpg?stp=dst-jpg_s960x960&_nc_cat=101&ccb=1-7&_nc_sid=c48759&_nc_ohc=pMlW0r8dBVcAX8-weBO&_nc_ht=scontent.fist2-3.fna&oh=00_AT8matGl_uFm2p8l-cL6W98Pz4-Ep-lAJ4Nw5UmMvat4tA&oe=630CF9F5",
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/294731852_5345348122250450_440700157289410874_n.jpg?stp=dst-jpg_p960x960&_nc_cat=109&ccb=1-7&_nc_sid=c48759&_nc_ohc=rNQSMaGe1FQAX_8cANT&_nc_ht=scontent.fist2-4.fna&oh=00_AT9KvkqFMhrC0HR66FGLp5oj4X0gWhvgolub5In_82S-MQ&oe=630D47DB"
],
Expand All @@ -467,11 +467,10 @@
"id": 17,
"title": "Bike",
"description": "Got it as a gift, never got to use it. I'm willing to give it away for free. It's in a good condition.",
"coverImage": "https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/277149770_5357062651005776_8038858760568495623_n.jpg?stp=dst-jpg_p960x960&_nc_cat=100&ccb=1-7&_nc_sid=c48759&_nc_ohc=TG0anlyGUFEAX-CT3if&tn=o1n-iYo_c7xaIWX5&_nc_ht=scontent.fist2-4.fna&oh=00_AT9x10FdGuQVtfGgqhez52TW1sDjtfg6ZefQbMp1MXMvCA&oe=630D4003",
"coverImage": "https://cdn.pocket-lint.com/r/s/970x/assets/images/156670-gadgets-review-merida-ebig-tour-400-image1-mxnth3arfq.JPG",
"otherImages": [
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/279532080_5840163916000945_8532685692404541865_n.jpg?stp=dst-jpg_p960x960&_nc_cat=102&ccb=1-7&_nc_sid=c48759&_nc_aid=0&_nc_ohc=ZP35H7aTnXMAX-ENvDU&_nc_ht=scontent.fist2-3.fna&oh=00_AT_0jOvzxFAlRgaIUk1M2XlVURna6g9BUNXDoqQlVRVrog&oe=630CF030",
"https://scontent.fist2-3.fna.fbcdn.net/v/t45.5328-4/279357407_5206652452711331_2232070650088748895_n.jpg?stp=dst-jpg_p960x960&_nc_cat=101&ccb=1-7&_nc_sid=c48759&_nc_ohc=yPbjwKl5aoEAX_d9mtt&_nc_ht=scontent.fist2-3.fna&oh=00_AT8W9mD8tG8lIcubkO3e-b3C2ym0NPI-dxYCkdPDCJ0mXA&oe=630BEB6C",
"https://scontent.fist2-4.fna.fbcdn.net/v/t45.5328-4/277149770_5357062651005776_8038858760568495623_n.jpg?stp=dst-jpg_p960x960&_nc_cat=100&ccb=1-7&_nc_sid=c48759&_nc_ohc=TG0anlyGUFEAX-CT3if&tn=o1n-iYo_c7xaIWX5&_nc_ht=scontent.fist2-4.fna&oh=00_AT9x10FdGuQVtfGgqhez52TW1sDjtfg6ZefQbMp1MXMvCA&oe=630D4003"
"https://cdn.motor1.com/images/mgl/9mmrvl/s3/cube-s-hybrid-one-e-bike-offers-big-miles-for-budget-minded-cyclists.jpg",
"https://i.insider.com/5f529676e6ff30001d4e73b6?width=1000&format=jpeg&auto=webp"
],
"price": 0,
"category": "Two-wheeler",
Expand Down Expand Up @@ -597,7 +596,7 @@
"seller": {
"id": 88888888,
"displayName": "Umut Polat",
"email": "[email protected]",
"email": "[email protected]",
"image": "https://www.random-name-generator.com/images/faces/male-white/37.jpg?ezimgfmt=rs:148x143/rscb1/ng:webp/ngcb1"
},
"requestedBuyers": [],
Expand Down
3 changes: 2 additions & 1 deletion public/locales/de/product.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"cancel": "Absagen",
"unlisting-confirm": "Sind Sie sicher, dass Sie auslisten wollen",
"contact-owner": "Kontaktiere den Besitzer",
"listing-date": "Auflistungsdatum"
"listing-date": "Auflistungsdatum",
"removed-successfully": "Erfolgreich ausgelistet"
}
3 changes: 2 additions & 1 deletion public/locales/en/product.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"cancel": "Cancel",
"unlisting-confirm": "Are you sure you want to unlist",
"contact-owner": "Contact owner",
"listing-date": "Listing date"
"listing-date": "Listing date",
"removed-successfully": "Successfully unlisted"
}
3 changes: 2 additions & 1 deletion public/locales/tr/product.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"cancel": "İptal et",
"unlisting-confirm": "İlanı kaldırmak istediğinize emin misiniz",
"contact-owner": "Satıcı ile iletişime geç",
"listing-date": "ilan tarihi"
"listing-date": "ilan tarihi",
"removed-successfully": "Başarıyla kaldırıldı"
}
3 changes: 2 additions & 1 deletion src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function Sidebar({ pageName }) {
<Image src={rifik} alt='rifik' layout='intrinsic' />
</div>
<div className='flex flex-col justify-evenly xs:mb-2 xs:ml-2 xs:text-left sm:mb-5 sm:text-center'>
<p className='mt-2 text-xl font-semibold text-purple xs:text-sm sm:mt-0'>
<p className='mt-2 text-xl text-purple xs:text-sm sm:mt-0'>
<span className='font-semibold'>Name: </span>
{user ? user.displayName : "Rifik Haspolat"}
</p>
{user ? user.Image : "Rifik Haspolat"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@ exports[`renders correctly 1`] = `
className="flex flex-col justify-evenly xs:mb-2 xs:ml-2 xs:text-left sm:mb-5 sm:text-center"
>
<p
className="mt-2 text-xl font-semibold text-purple xs:text-sm sm:mt-0"
className="mt-2 text-xl text-purple xs:text-sm sm:mt-0"
>
<span
className="font-semibold"
>
Name:
</span>
Rifik Haspolat
</p>
Rifik Haspolat
Expand Down
10 changes: 7 additions & 3 deletions src/components/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,12 @@ function Header({
tabIndex='-1'
>
<div className='right-0 flex flex-col items-center py-1 '>
<p>{user.displayName}</p>
<p>{user.name}</p>
<div className='w-full px-1'>
<p className='border-b-[1px] border-darkPurple text-center text-darkPurple'>
{user.displayName}
</p>
</div>

<Link href='/listings'>
<a
className='flashing block px-4 py-2 text-sm text-lightpurple'
Expand Down Expand Up @@ -369,7 +373,7 @@ function Header({
onClick={() => {
logout();
toast.success(
t("logout-succes"),
t("logout-success"),
{
position:
toast.POSITION
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function MyApp({ Component, pageProps }) {
</Head>

<AuthContextProvider>
<Component {...pageProps} />;
<Component {...pageProps} />
</AuthContextProvider>
</>
);
Expand Down
Loading

0 comments on commit 3006ad0

Please sign in to comment.