Skip to content

Commit 5a524e0

Browse files
authored
Merge pull request #40 from vcashwin/bugfix/empty-list-svg
Add empty list SVG instead of PNG to support Dark mode
2 parents f498c62 + 2367052 commit 5a524e0

File tree

2 files changed

+72
-12
lines changed

2 files changed

+72
-12
lines changed

assets/oc-thinking.svg

+67
Loading

screens/form-builder/index.tsx

+5-12
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import { FieldSelector } from '@/screens/field-selector'
1414
import { FormFieldList } from '@/screens/form-field-list'
1515
import { FormPreview } from '@/screens/form-preview'
1616
import { EditFieldDialog } from '@/screens/edit-field-dialog'
17-
18-
import EmptyListImage from '@/assets/oc-thinking.png'
17+
import EmptyListSvg from '@/assets/oc-thinking.svg'
1918

2019
export type FormFieldOrGroup = FormFieldType | FormFieldType[]
2120

@@ -41,12 +40,12 @@ export default function FormBuilder() {
4140
disabled: false,
4241
label: label || newFieldName,
4342
name: newFieldName,
44-
onChange: () => { },
45-
onSelect: () => { },
43+
onChange: () => {},
44+
onSelect: () => {},
4645
placeholder: placeholder || 'Placeholder',
4746
required: true,
4847
rowIndex: index,
49-
setValue: () => { },
48+
setValue: () => {},
5049
type: '',
5150
value: '',
5251
variant,
@@ -162,13 +161,7 @@ export default function FormBuilder() {
162161
addFormField(variant, index)
163162
}
164163
/>
165-
<Image
166-
src={EmptyListImage}
167-
width={585}
168-
height={502}
169-
alt="Empty Image"
170-
className="object-contain mx-auto p-5 md:p-20"
171-
/>
164+
<EmptyListSvg className="mx-auto" />
172165
</div>
173166
)}
174167
/>

0 commit comments

Comments
 (0)