Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* under the License.
*/

export interface global {}
export type global = object;

declare global {
var ChakraUISystem: SystemContext | undefined
var ChakraUISystem: SystemContext | undefined;
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const PluginComponent: FC<PluginComponentProps> = (props) => {
// Use the globalChakraUISystem provided by the Airflow Core UI,
// so the plugin has a consistent theming with the host Airflow UI,
// fallback to localSystem for local development.
const system = (globalThis.ChakraUISystem) ?? localSystem;
const system = (globalThis.ChakraUISystem) ?? localSystem;

return (
<ChakraProvider value={system}>
Expand Down
4 changes: 0 additions & 4 deletions dev/react-plugin-tools/react_plugin_template/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/

/* eslint-disable perfectionist/sort-objects */

/* eslint-disable max-lines */
import { createSystem, defaultConfig } from "@chakra-ui/react";

export const localSystem = createSystem(defaultConfig);