Skip to content

Instantly share code, notes, and snippets.

View Qasem-h's full-sized avatar
🏠
Working from home

Qasem Hajizadeh Qasem-h

🏠
Working from home
View GitHub Profile
import React from "react";
import { Formik, Form } from "formik";
import { Box, Button } from "@chakra-ui/core";
import { Wrapper } from "../components/Wrapper";
import { InputField } from "../components/InputField";
import { toErrorMap } from "../utils/toErrorMap";
import { useRouter } from "next/router";
import { useLoginMutation } from "../generated/graphql";
import { createUrqlClient } from "../utils/createUrqlClient";
import { withUrqlClient } from "next-urql";
import { WindowTitle } from "@byso/components/WindowTitle";
import { DEFAULT_INITIAL_SEARCH_DATA } from "@byso/config";
import useNavigator from "@byso/hooks/useNavigator";
import useNotifier from "@byso/hooks/useNotifier";
import usePategorySearch from "@byso/searches/usePategorySearch";
import createMetadataCreateHandler from "@byso/utils/handlers/metadataCreateHandler";
import {
useMetadataUpdate,
usePrivateMetadataUpdate
} from "@byso/utils/metadata/updateMetadata";
import React, { useEffect, useRef, useState } from "react";
import { IFormError, IPaymentGatewayConfig } from "@types";
import { CompleteCheckout_checkoutComplete_order } from "@saleor/sdk/lib/mutations/gqlTypes/CompleteCheckout";
import { ErrorMessage } from "@components/atoms";
interface IResourceConfig {
src: string;
integrity: string;
crossOrigin: string;
let data = {
results: [
{
type: "MA",
CN: "3",
DO: "1",
FF: "",
FI: "83025411",
I2: "1,6",
IB: "0",
{
"type": "MA",
"CN": "3",
"DO": "1",
"FF": "",
"FI": "83025411",
"I2": "1,6",
"IB": "0",
"ID": "10124",
"IM": "1",
{
"type": "MA",
"CN": "1",
"DO": "1",
"FF": "",
"FI": "83004323",
"I2": "1",
"IB": "0",
"ID": "1777",
"IM": "1",
{
"type": "MA",
"CN": "1",
"DO": "1",
"FF": "",
"FI": "0",
"IB": "0",
"ID": "1777",
"IM": "1",
"IR": "",
let data = { results: [
{
type: "EVENT",
CT: "Zimbabwe Premier Soccer League",
FI: "82829971",
FULL_TIME: "90",
MO: "0",
MP: "0",
MS: "0",
NAME: "Chicken Inn FC v Manica Diamonds FC"
results: [
{
type: "MARKET",
COLUMN_NUMBER: "1",
DEFAULT_OPEN: "1",
ID: "1777",
NAME: "Fulltime ReSUCCESSlt",
ORDER: "0"
},
{
const Rooot = props => {
const requireSignIn = generateRequireSignInWrapper({
redirectPathIfNotSignedIn: <Home />
});
const { sports, currentLocale , currentUser } = props;
const routes = [
{
path: "/",