Simplify positioning of timeline warnings

This commit is contained in:
Evan Hahn 2022-03-09 12:47:13 -06:00 committed by GitHub
parent a72cf075ef
commit 0b5e2e6768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 64 deletions

View file

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