Skip to content

Instantly share code, notes, and snippets.

/*
Install:
"react-phone-number-input": "^3.3.6",
import { Country } from 'react-phone-number-input';
export const getCountryCodeByName = (countryName: string) => {
const countryCode = Object.keys(countryNames).find(
(key) =>
'use client';
import clsx from 'clsx';
import { useMutation, useQuery } from '@tanstack/react-query';
import React, { Fragment, useState } from 'react';
import { useDebounce } from 'react-use';
import {
BankBranchItemProps,
BankListItemProps,
console.log('the embeded script');
const style = document.createElement('style');
// Step 2: Add CSS rules to the style element
style.innerHTML = ` * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Raleway", sans-serif;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
*{
box-sizing: border-box;
@Timothy-Achonu
Timothy-Achonu / CountryCodes.json
Created March 12, 2024 10:12 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
const subscriptionPlansFeatures = {
plans: [
{
name: 'Basic',
},
{ name: 'Pro', popular: true },
{ name: 'Serlzona' },
],
packages: {
monthly: [