Skip to content

Instantly share code, notes, and snippets.

View dennyjohnk's full-sized avatar
🎯
Focusing

Denny John dennyjohnk

🎯
Focusing
View GitHub Profile
{
"name": "eximpe-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@chakra-ui/icons": "^1.1.1",
"@chakra-ui/react": "^1.7.2",
"@chakra-ui/theme": "^1.12.1",
"@chakra-ui/theme-tools": "^1.3.1",
"@emotion/react": "^11.7.0",
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true,
"project": "tsconfig.json",
"sourceType": "module"
},
"ignorePatterns": ["./mock-api/server.js", "*.config.js"],
"extends": [
const digitalRoot = (n) => {
let numToString = n.toString();
let sum = 0;
for(let i = 0; i < numToString.length; i++){
sum += parseInt(numToString[i]);
}
if(sum > 9) {
return digitalRoot(sum);
const cheerio = require("cheerio");
var fs = require("fs");
const fetch = require("node-fetch");
const writeStream = fs.createWriteStream("post.csv");
var csvWriter = require("csv-write-stream");
var writer = csvWriter(); //Instantiate var
var csvFilename = "./post.csv";
writeStream.write(`No , First Name , Last Name, Company, City ,Zip, Phone,Address \n`)
(function () {
app.service('SlaService', function () {
var slaStatus = [
{
"status": "EXECUTED",
"responseColor": "#5cb85c",
"resolutionColor" : "#5cb85c",
"timeFormat": 1,
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://asista.com/blog/wp-content/themes/sydney-child/css/main.min.css">
<link rel='stylesheet' id='sydney-bootstrap-css' href='https://asista.com/blog/wp-content/themes/sydney/css/bootstrap/bootstrap.min.css?ver=1' type='text/css' media='all' />
<link rel='stylesheet' id='sydney-style-css' href='https://asista.com/blog/wp-content/themes/sydney-child/style.css?ver=20180710' type='text/css' media='all' />
</head>
<body>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://asista.com/blog/wp-content/themes/sydney-child/css/main.min.css">
<link rel='stylesheet' id='sydney-bootstrap-css' href='https://asista.com/blog/wp-content/themes/sydney/css/bootstrap/bootstrap.min.css?ver=1' type='text/css' media='all' />
<link rel='stylesheet' id='sydney-style-css' href='https://asista.com/blog/wp-content/themes/sydney-child/style.css?ver=20180710' type='text/css' media='all' />
</head>
<body>
(function () {
app.service('SlaService', function () {
var slaStatus = [
{
"status": "EXECUTED",
"responseColor": "#5cb85c",
"resolutionColor" : "#5cb85c",
"timeFormat": 1,
const Post = props => { ---> is it possible to destructure ths to /*** const Post = props => { ****/ ? Just becoz am using props.history.push am not able to desctructure this :(
const post = props.post;
return (
<div className="post-container" key={post.id}>
{post.companyName ? <CompanyInfo companyName={post.companyName} /> : ""}
<UserInfo post={post} />
<div
className="cursor-pointer post-title"
import React, { Component } from 'react';
import { Widget, addResponseMessage, addUserMessage, toggleInputDisabled } from './lib/index';
import axios from 'axios';
import { API_URL } from './constants';
import { API_ROOT } from './api-config';
import './lib/styles.css';
export default class App extends Component {