fix(ui): disallow loading/deleting workflow if already open

This commit is contained in:
psychedelicious
2023-12-06 23:55:13 +11:00
parent 6e028d691a
commit 06104f3851
4 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
import { defineStyle, defineStyleConfig } from '@chakra-ui/react';
import { mode } from '@chakra-ui/theme-tools';
const accent = defineStyle((props) => ({
color: mode('accent.500', 'accent.300')(props),
}));
export const headingTheme = defineStyleConfig({
variants: {
accent,
},
});

View File

@@ -21,6 +21,7 @@ import { textTheme } from './components/text';
import { textareaTheme } from './components/textarea';
import { tooltipTheme } from './components/tooltip';
import { reactflowStyles } from './custom/reactflow';
import { headingTheme } from 'theme/components/heading';
export const theme: ThemeOverride = {
config: {
@@ -146,6 +147,7 @@ export const theme: ThemeOverride = {
Menu: menuTheme,
Text: textTheme,
Tooltip: tooltipTheme,
Heading: headingTheme,
},
};