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
/* eslint-disable @next/next/no-sync-scripts */ | |
import React, { useState } from "react"; | |
import Link from "next/link"; | |
import { useRouter } from "next/router"; | |
import Head from "next/head"; | |
import Footer from "../components/Footer"; | |
const AddContact = () => { | |
const router = useRouter(); | |
const [firstName, setFirstName] = useState(""); |
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 Image from "next/image"; | |
import Link from "next/link"; | |
export default function SearchList({ allContacts }) { | |
function getFirstLetter(character) { | |
return character.charAt(0).toUpperCase(); | |
} | |
let contactInfo = []; | |
allContacts.forEach((data) => { |