components/Profile/Avatar/Fragment.ts import gql from 'graphql-tag'; export default gql` fragment ProfileAvatarFragment on Profile { id name kind imageUrl } `;
import * as React from "react"; import Font from "components/Font"; text // -> text text // -> text text Font.Text> // -> text ( Pass custom component as prop
import * as React from "react"; import styles from "./styles.css"; import classNames from "classnames"; export function Text({ component, className, ...props }) { Component = component || "span"; return } ( Pass extra class name
href={paths.profile(profile)} /> onClick={onClickReturnsPromise} loadingText="Waiting for promise to resolve" /> confirm="Are you sure?" mutation={DELETE_MUTATION} input={{ id }} loadingText="Deleting..." onMutate={redirectSomeWhere} />
href={paths.profile(profile)} /> onClick={onClickReturnsPromise} loadingText="Waiting for promise to resolve" /> confirm="Are you sure?" mutation={DELETE_MUTATION} input={{ id }} loadingText="Deleting..." onMutate={redirectSomeWhere} />