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
import React from "react"; | |
import { MapContainer, Marker, Popup, TileLayer } from "react-leaflet"; | |
import { Icon } from "leaflet"; | |
export const Map = () => { | |
const position = [8.1386, 5.1026]; | |
const zoomLevel = 15; | |
const swimmingSpot = new Icon({ | |
iconUrl: "/images/computer-solid.svg", |
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
import React, { useState, useEffect } from "react"; | |
import Moralis from "moralis"; | |
import { NftSearchBar } from "../components/Nfts/NftSearchBar"; | |
import { NftCardContainer } from "../components/Nfts/NftCardContainer"; | |
export const NftExplore = ({ settheme }) => { | |
// 1. loading state | |
const [loading, setLoading] = useState(false); | |
// 2. The search query state |
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
// import express | |
const express = require('express'); | |
const app = express(); | |
//Parse URL-encoded bodies - Allows | |
app.use(express.urlencoded({ extended: true })); | |
app.use(express.json()); | |
// import cors | |
var cors = require('cors'); |