Files
overleaf-cep/services/web/frontend/js/shared/components/layouts/content-layout.tsx
Antoine Clausse 2ebc411db4 [web] Create a first implementation of the CIAM version of the email confirmation page (#29432)
* 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
2025-11-05 09:06:30 +00:00

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