Can test new changes on https://deploy-preview-22--openfit-programs-qa.netlify.app/graphql
type Query {
classStartInfo(_id: ID!, _key: String)
classEndInfo(_id: ID!, _key: String)
}
import React from 'react'; | |
import { | |
StyleSheet, | |
View, | |
Text, | |
TouchableOpacity, | |
SafeAreaView | |
} from 'react-native'; | |
import { Ionicons } from '@expo/vector-icons'; |
import stringEnumerator from "../../components/stringEnumerator"; | |
export const mySchema = { | |
//...other fields | |
fruits: { | |
name: "fruits", | |
title: "Favorite Fruits", | |
type: "string", | |
inputComponent: stringEnumerator, | |
options: { |
import computedField from 'sanity-plugin-computed-field' | |
import createSchema from 'part:@sanity/base/schema-creator' | |
import schemaTypes from 'all:part:@sanity/base/schema-type' | |
const Course = { | |
name: 'course', | |
title: 'Title for Course', | |
description: 'Represents a given course taught at Sanity U', | |
type: 'document', | |
fields: [ |
Can test new changes on https://deploy-preview-22--openfit-programs-qa.netlify.app/graphql
type Query {
classStartInfo(_id: ID!, _key: String)
classEndInfo(_id: ID!, _key: String)
}
import { | |
RekognitionClient, | |
DetectFacesCommand, | |
DetectFacesCommandInput, | |
} from "@aws-sdk/client-rekognition"; | |
import imageUrlBuilder from "@sanity/image-url"; | |
import client, { SanityImageAssetDocument, Transaction } from "@sanity/client"; | |
import { default as nodeFetch } from "node-fetch"; | |
const SANITY_DATASET = "<my project dataset>"; |
// UsersList without redux | |
import * as React from "react"; | |
import { useUserStore } from "app/hooks/user-hooks" | |
// UserItem represents a user item in the list | |
import UserItem from "app/components/UserItem"; | |
const UsersList: React.FC = () => { | |
const { users, updateUser, deleteUser } = useUserStore(); |
//UsersList | |
import * as React from "react"; | |
import { connect } from "react-redux"; | |
import { User } from "app/redux/user-reducer"; | |
// UserItem represents a user item in the list | |
import UserItem from "app/components/UserItem"; | |
type Props = { | |
users: User[]; |
import * as React from "react" | |
import { useSelector, useDispatch } from "react-redux" | |
// UserItem represents a user item in the list | |
import UserItem from "app/components/UserItem"; | |
type RootReducer = { | |
users: UserReducerState; | |
} |
// App.tsx | |
import { ThemeProvider } from "styled-components"; | |
export const App: React.FC<{children: React.ReactNode}> = ({children}) => { | |
return ( | |
<ThemeProvider theme={theme}> | |
{children} | |
</ThemeProvider> | |
) | |
} |