fix: preserve SSO identities and polish sharing interface
This commit is contained in:
1 parent
2e3b56f250
commit
bd9bf33bc9
22 files changed
+430
-106
No files matched your search
@@ -1,9 +1,7 @@
|
||||
import "ace-builds";
|
||||
import { themesByName } from "ace-builds/src-noconflict/ext-themelist";
|
||||
import "ace-builds/src-noconflict/theme-chrome";
|
||||
import "ace-builds/src-noconflict/theme-twilight";
|
||||
import { getTheme } from "./theme";
|
||||
|
||||
export const getEditorTheme = (themeName: string) => {
|
||||
const key = themeName.replace(/^ace\/theme\//, "");
|
||||
if (themesByName[key] !== undefined) return `ace/theme/${key}`;
|
||||
export const getEditorTheme = () => {
|
||||
return getTheme() === "dark" ? "ace/theme/twilight" : "ace/theme/chrome";
|
||||
};
|
||||
Reference in new issue
Block a user