mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 04:21:32 +02:00
* Move `main#main-content.content.content-alt` into a React component (`ContentLayout`) * Create the CIAM variant of `RegistrationConfirmEmailForm` * `bin/run web npm run extract-translations` * Use `CiamLayout` in the Storybook demo * Add `SplitTestProvider` in tests * Fix Storybook: Wrap `RegistrationConfirmEmailForm` Story in `onboarding-confirm-email` * Refactor SCSS files: - only imports in all.scss - split .storybook-layout and .storybook-enabled - extract ciam-spacing.scss GitOrigin-RevId: f4a214a0978423a1621dd8f60bf459af7b8f877e
17 lines
442 B
TypeScript
17 lines
442 B
TypeScript
import React, { FC, ReactNode } from 'react'
|
|
|
|
type Props = { children: ReactNode; isMain?: boolean; alt?: boolean }
|
|
|
|
const ContentLayout: FC<Props> = ({ children, isMain, alt }: Props) => {
|
|
const className = alt ? 'content content-alt' : 'content'
|
|
return isMain ? (
|
|
<main className={className} id="main-content">
|
|
{children}
|
|
</main>
|
|
) : (
|
|
<div className={className}>{children}</div>
|
|
)
|
|
}
|
|
|
|
export default ContentLayout
|