mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
moar
This commit is contained in:
1 parent
8fe125a653
commit
d012ed12c3
2 files changed
+5
-1
No files matched your search
@@ -15,6 +15,7 @@ import { Admonition } from 'ui-patterns'
|
||||
import { untitledSnippetTitle } from './SQLEditor.constants'
|
||||
import type { IStandaloneCodeEditor } from './SQLEditor.types'
|
||||
import { createSqlSnippetSkeletonV2 } from './SQLEditor.utils'
|
||||
import { makeActiveTabPermanent } from 'state/tabs'
|
||||
|
||||
export type MonacoEditorProps = {
|
||||
id: string
|
||||
@@ -120,6 +121,9 @@ const MonacoEditor = ({
|
||||
}, 1000)
|
||||
|
||||
function handleEditorChange(value: string | undefined) {
|
||||
// make active tab permanent
|
||||
makeActiveTabPermanent(ref)
|
||||
|
||||
const snippetCheck = snapV2.snippets[id]
|
||||
|
||||
if (id && value) {
|
||||
|
||||
@@ -59,7 +59,7 @@ export function NewTab() {
|
||||
|
||||
return (
|
||||
<div className="bg-surface-100 h-full overflow-y-auto py-12">
|
||||
<div className="mx-auto max-w-2xl flex flex-col gap-10">
|
||||
<div className="mx-auto max-w-2xl flex flex-col gap-10 px-10">
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
{actions.map((item, i) => (
|
||||
<ActionCard key={`action-card-${i}`} {...item} />
|
||||
|
||||
Reference in new issue
Block a user