1.1.13 • Published 6 years ago
plugin-storage v1.1.13
search
Made with create-react-library
Install
npm install --save plugin-storageUsage
import React, {memo} from 'react'
import { ApolloProvider, useQuery } from '@apollo/client'
import {PLUGIN_SETTING_QUERY, client} from 'plugin-storage'
const PluginQuery = memo(props => {
const LoadSetting = () => {
const {data} = useQuery(PLUGIN_SETTING_QUERY, {
variables: { id: props.settingId}
})
if(data){
const setting = data.pluginSetting;
return(
<div style={{padding: 10}} >
{Object.keys(setting).map(key =><div>{key}:{setting[key]}</div>)}
</div>
)
}
return null;
}
return (
<ApolloProvider client={client}>
<LoadSetting />
</ApolloProvider>
);
})
export default PluginQueryLicense
MIT © khousuylong
1.1.13
6 years ago
1.1.12
6 years ago
1.1.11
6 years ago
1.1.10
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago