From cc28b5aea7e2b25cf10fe17c2f29d13707aa1168 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Wed, 23 Aug 2023 07:15:29 -0700 Subject: [PATCH] Use ScribeLogger from flipper-common Summary: It removes the ScribeLogger found in flipper-ui-core and also updates its references to point to the type defined in flipper-common. Reviewed By: passy Differential Revision: D48556328 fbshipit-source-id: 525d9e8ee9a80f68aecb8b8b2e25ffd4714649bd --- .../src/fb-stubs/ErrorReporter.tsx | 2 +- .../src/fb-stubs/ScribeLogger.tsx | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 desktop/flipper-ui-core/src/fb-stubs/ScribeLogger.tsx diff --git a/desktop/flipper-ui-core/src/fb-stubs/ErrorReporter.tsx b/desktop/flipper-ui-core/src/fb-stubs/ErrorReporter.tsx index 77fbc283a..299bd99f7 100644 --- a/desktop/flipper-ui-core/src/fb-stubs/ErrorReporter.tsx +++ b/desktop/flipper-ui-core/src/fb-stubs/ErrorReporter.tsx @@ -13,7 +13,7 @@ * so that all logged errors get reported to this class. */ export function cleanStack(_stack: string, _loc?: string) {} -import ScribeLogger from './ScribeLogger'; +import {ScribeLogger} from 'flipper-common'; export default class ErrorReporter { constructor(_scribeLogger: ScribeLogger) {} diff --git a/desktop/flipper-ui-core/src/fb-stubs/ScribeLogger.tsx b/desktop/flipper-ui-core/src/fb-stubs/ScribeLogger.tsx deleted file mode 100644 index 325042c64..000000000 --- a/desktop/flipper-ui-core/src/fb-stubs/ScribeLogger.tsx +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -export type ScribeMessage = { - category: string; - message: string; -}; - -export default class ScribeLogger { - constructor() {} - send(_message: ScribeMessage) {} -}