refactor: clarify frontend model ownership
This commit is contained in:
@@ -8,4 +8,3 @@ export {
|
||||
formatSnapshotTime,
|
||||
instrumentLogoUrl,
|
||||
} from "./display";
|
||||
export { useImageFallback } from "./useImageFallback";
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
import { useState } from "react";
|
||||
|
||||
function useImageFallback() {
|
||||
const [failed, setFailed] = useState(false);
|
||||
const onError = () => setFailed(true);
|
||||
|
||||
return { failed, onError };
|
||||
}
|
||||
|
||||
export { useImageFallback };
|
||||
Reference in New Issue
Block a user