Skip to content

Instantly share code, notes, and snippets.

View aftab11aftab's full-sized avatar

aftab11aftab aftab11aftab

View GitHub Profile
const LHS = {
"assigned_officer": null,
"associations": [{
"association_name": "Stella Brockman Elementary School",
"association_type": "school",
"city": "Manteca",
"latitude": "37.8077347",
"longitude": "-121.2471565",
"state": "California",
"street_name": "Silverado Drive",
import React, { useState } from "react";
const ProfileDataContext = React.createContext([{}, () => {}]);
const ProfileDataProvider = (props: any) => {
const [state, setState] = useState({
avatart: "",
created: 0,
cwscms_id: "",
first_name: "",
import React from "react";
import Profile from "./Profile";
import { ProfileDataProvider } from "../../hooks/useProfileData/ProfileDataContext";
export default () => {
return (
<ProfileDataProvider>
<Profile />
</ProfileDataProvider>
);
> sjc-front-end-app@0.1.0 mock:api g:\my_projects\fiverr\ara394\sjc_ican\sjc-ican
> json-server --watch src/data/index.js --port 4000/api/ican
\{^_^}/ hi!
Loading src/data/index.js
Done
Resources
// name, image, description then
// every section should start with section__ like section__demographic_title: 'Demographic'
// every prop should start with the section name like demographic_age_title: 'Age'
// every value should start with the section name like demographic_age_value: '14'
const personDetails: PersonDetails = {
name: "Delilah Will",
image: "https://s3.amazonaws.com/uifaces/faces/twitter/2fockus/128.jpg",
description: "unde sint qui",
sections: [