File tree 4 files changed +5
-5
lines changed
JsonSchemaBuilder/components
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import SchemaInput from '@/components/JsonSchemaBuilder/components/SchemaInput' ;
2
2
import SchemaMenuPopover from '@/components/JsonSchemaBuilder/components/SchemaMenuPopover' ;
3
3
import SchemaTypesSelect from '@/components/JsonSchemaBuilder/components/SchemaTypesSelect' ;
4
+ import { Badge } from '@/components/ui/badge' ;
4
5
import { Button } from '@/components/ui/button' ;
5
6
import { CircleEllipsisIcon , PlusIcon , TrashIcon } from 'lucide-react' ;
6
7
import { useEffect , useState } from 'react' ;
8
+ import { twMerge } from 'tailwind-merge' ;
7
9
8
10
import {
9
11
addSchemaProperty ,
@@ -13,8 +15,6 @@ import {
13
15
setSchemaTypeAndRemoveWrongFields ,
14
16
} from '../utils/helpers' ;
15
17
import { SchemaRecordType } from '../utils/types' ;
16
- import { Badge } from '@/components/ui/badge' ;
17
- import { twMerge } from 'tailwind-merge' ;
18
18
19
19
interface SchemaControlsProps {
20
20
schema : SchemaRecordType ;
Original file line number Diff line number Diff line change
1
+ import { Badge } from '@/components/ui/badge' ;
1
2
import { Button } from '@/components/ui/button' ;
2
3
import { AsteriskIcon , ChevronDownIcon } from 'lucide-react' ;
3
4
import { PropsWithChildren , useState } from 'react' ;
@@ -18,7 +19,6 @@ import {
18
19
} from '../utils/helpers' ;
19
20
import { SchemaRecordType } from '../utils/types' ;
20
21
import { SchemaArrayControls , SchemaControls } from './SchemaControls' ;
21
- import { Badge } from '@/components/ui/badge' ;
22
22
23
23
interface SchemaCreatorProps {
24
24
isRequired ?: boolean ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const Item = ({children, onDelete}: ItemProps) => (
36
36
< div className = "min-w-0 flex-1" > { children } </ div >
37
37
38
38
< Button
39
- className = "flex- shrink-0 text-content-destructive/50 hover:bg-surface-destructive-secondary hover:text-content-destructive"
39
+ className = "shrink-0 text-content-destructive/50 hover:bg-surface-destructive-secondary hover:text-content-destructive"
40
40
onClick = { onDelete }
41
41
size = "icon"
42
42
variant = "ghost"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import {twMerge} from 'tailwind-merge';
5
5
import { Button } from './ui/button' ;
6
6
7
7
export const Note = ( { content, icon} : { content : string ; icon ?: ReactNode } ) => (
8
- < div className = { twMerge ( 'bg-surface-warning-secondary relative flex items-center rounded-md p-4' , icon && 'gap-2' ) } >
8
+ < div className = { twMerge ( 'relative flex items-center rounded-md bg-surface-warning-secondary p-4' , icon && 'gap-2' ) } >
9
9
{ icon && icon }
10
10
11
11
< p className = "text-sm font-medium" > { content } </ p >
You can’t perform that action at this time.
0 commit comments