Skip to content

Instantly share code, notes, and snippets.

View ThianHooi's full-sized avatar
🎯
Focusing

Ooi Thian Hooi ThianHooi

🎯
Focusing
View GitHub Profile
@ThianHooi
ThianHooi / currency.enum.ts
Created October 10, 2022 10:19
An ENUM of currency code
export enum CurrencyCode {
// /** United Arab Emirates dirham */
// Aed = 'AED',
// /** Afghan afghani */
// Afn = 'AFN',
// /** Albanian lek */
// All = 'ALL',
// /** Armenian dram */
// Amd = 'AMD',
// /** Netherlands Antillean guilder */
@ThianHooi
ThianHooi / map.js
Created September 19, 2022 16:47
[Supplier Portal] - Script for getting Excel Header to DB Fields
const poLaymanToKey = {
'Supplier Code': 'SUP_CODE',
'Purchase Order number': 'PO_NUM',
'Purchase Order Status ': 'PO_STATUS',
'Purchase Order Type ': 'PO_TYPE',
'Purchase Order Type Description': 'PO_TYPE_D',
'Purchase Order Header Text': 'PO_DESCR',
'Purchasing Org': 'PU_ORG',
'Purchasing Group': 'PU_GROUP',
'Company Code': 'PO_COMP',
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { CheckoutWithCard, PayWithCard } from '@paperxyz/react-client-sdk';
import { Field, Form, Formik } from 'formik';
import Dialog from 'components/Dialog';
type Props = {
showDialog: boolean;
onClose: () => void;
onPaymentSuccess: () => void;
TypeScript 16 hrs 13 mins ████████████████░░░░░ 76.5%
Solidity 2 hrs 33 mins ██▌░░░░░░░░░░░░░░░░░░ 12.1%
Other 1 hr 5 mins █░░░░░░░░░░░░░░░░░░░░ 5.1%
Bash 48 mins ▊░░░░░░░░░░░░░░░░░░░░ 3.9%
CSS 17 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.4%