MCPcopy Create free account
hub / github.com/dailydotdev/apps / onRemove

Function onRemove

packages/shared/src/hooks/useControlledImageUpload.ts:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 };
83
84 const onRemove = () => {
85 setValue(currentImageName, null);
86 setValue(name, null);
87 setPreview(null);
88 if (inputRef.current) {
89 inputRef.current.value = '';
90 }
91 };
92
93 const getDisplayImage = (): string | null => {
94 if (preview) {

Callers 4

WidgetCellFunction · 0.50
onRemovePerkFunction · 0.50
TrayItemFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected