- Changed the initialization function to be asynchronous, ensuring all necessary setups are completed before rendering. - Modified the rendering logic in the Item component to return the memoized content directly. - Cleaned up the NormalListItem component by removing unnecessary wrapper elements and updating class names for better styling consistency. Signed-off-by: Innei <tukon479@gmail.com>
12 lines
311 B
TypeScript
12 lines
311 B
TypeScript
import { initI18n } from "@client/i18n"
|
|
import { initializeDayjs } from "@follow/components/dayjs"
|
|
|
|
import { initAnalytics } from "./analytics"
|
|
import { initSentry } from "./sentry"
|
|
|
|
export const initialize = async () => {
|
|
initAnalytics()
|
|
initializeDayjs()
|
|
await Promise.all([initI18n(), initSentry()])
|
|
}
|