Revert buggy timeline layout refactor

This commit is contained in:
Evan Hahn 2022-03-09 16:44:57 -06:00 committed by GitHub
parent 81e991af80
commit 3226156a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 64 additions and 23 deletions

View file

@ -1,11 +1,19 @@
// Copyright 2021-2022 Signal Messenger, LLC
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { FunctionComponent } from 'react';
import React from 'react';
import type { ReactNode } from 'react';
import React, { forwardRef } from 'react';
const CLASS_NAME = 'module-TimelineWarnings';
export const TimelineWarnings: FunctionComponent = ({ children }) => (
<div className={CLASS_NAME}>{children}</div>
type PropsType = {
children: ReactNode;
};
export const TimelineWarnings = forwardRef<HTMLDivElement, PropsType>(
({ children }, ref) => (
<div className={CLASS_NAME} ref={ref}>
{children}
</div>
)
);