Merge branch 'develop' into dist/ubuntu/bionic/develop
This commit is contained in:
commit
3a102bde60
|
@ -26,7 +26,7 @@ export function Dashboard() {
|
|||
</div>
|
||||
<div className="column is-4">
|
||||
<div className="panel is-info">
|
||||
<p className="level panel-heading mb-0">
|
||||
<div className="level panel-heading mb-0">
|
||||
<div className="level-left">
|
||||
<div className="level-item">
|
||||
Ces 7 derniers jours
|
||||
|
@ -37,7 +37,7 @@ export function Dashboard() {
|
|||
<i className="icon fa fa-sliders-h"></i>
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<div className="panel-block">
|
||||
<Timeline events={events} />
|
||||
</div>
|
||||
|
|
|
@ -19,7 +19,7 @@ export const TimelinePanel: FunctionComponent<TimelinePanelProps> = ({ dsf }) =>
|
|||
|
||||
return (
|
||||
<div className="panel">
|
||||
<p className="level panel-heading mb-0">
|
||||
<div className="level panel-heading mb-0">
|
||||
<div className="level-left">
|
||||
<div className="level-item">
|
||||
Suivi des opérations
|
||||
|
@ -27,7 +27,7 @@ export const TimelinePanel: FunctionComponent<TimelinePanelProps> = ({ dsf }) =>
|
|||
</div>
|
||||
<div className="level-right">
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<div className="panel-block">
|
||||
<Timeline events={events} />
|
||||
</div>
|
||||
|
|
|
@ -20,7 +20,7 @@ export const TimelinePanel: FunctionComponent<TimelinePanelProps> = ({ workgroup
|
|||
|
||||
return (
|
||||
<div className="panel">
|
||||
<p className="level panel-heading mb-0">
|
||||
<div className="level panel-heading mb-0">
|
||||
<div className="level-left">
|
||||
<div className="level-item">
|
||||
Suivi des opérations
|
||||
|
@ -28,7 +28,7 @@ export const TimelinePanel: FunctionComponent<TimelinePanelProps> = ({ workgroup
|
|||
</div>
|
||||
<div className="level-right">
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<div className="panel-block">
|
||||
<Timeline events={events} />
|
||||
</div>
|
||||
|
|
|
@ -8,10 +8,16 @@ export const QUERY_IS_AUTHORIZED = gql`
|
|||
`;
|
||||
|
||||
export function useIsAuthorizedQuery<A = any, R = Record<string, any>>(options: QueryHookOptions<A, R> = {}) {
|
||||
options = Object.assign({
|
||||
fetchPolicy: 'cache-and-network'
|
||||
}, options);
|
||||
return useQuery(QUERY_IS_AUTHORIZED, options);
|
||||
}
|
||||
|
||||
export function useIsAuthorized<A = any, R = Record<string, any>>(options: QueryHookOptions<A, R> = {}, defaultValue = false) {
|
||||
options = Object.assign({
|
||||
fetchPolicy: 'cache-and-network'
|
||||
}, options);
|
||||
const { data, loading, error } = useGraphQLData<boolean>(
|
||||
QUERY_IS_AUTHORIZED, 'isAuthorized', defaultValue, options
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue