mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
unwind error handling use auth cookie as source of truth, fetch config only when authenticated
8 lines
240 B
JavaScript
8 lines
240 B
JavaScript
import React from 'react';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const ConfigContext = React.createContext({});
|
|
|
|
export const ConfigProvider = ConfigContext.Provider;
|
|
export const Config = ConfigContext.Consumer;
|