Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 0f3891f3

Přidáno uživatelem Dominik Poch před více než 2 roky(ů)

Moved loginProps to loginLayout

LoginProps are not used outside of loginLayout and it does not make sense for it to exist outside of loginLayout.

Zobrazit rozdíly:

webapp/components/loginProps.tsx
1
/**
2
 * Props prepared for the login form that is passed to the login layout.
3
 */
4
type LoginProps = {
5
    children: React.ReactNode;
6
};
7

  
8
export default LoginProps;
webapp/layouts/loginLayout.tsx
1 1
import logo from '/public/usp-logo.svg';
2 2
import Image from 'next/image';
3 3
import styles from '/styles/login.module.scss';
4
import LoginProps from '../components/loginProps';
5 4
import { Col, Container, Row, Stack } from 'react-bootstrap';
6 5

  
7 6
/**
......
9 8
 * @param props Html structure of a login form.
10 9
 * @returns The login screen.
11 10
 */
12
function LoginLayout(props: LoginProps) {
11
export function LoginLayout(props: LoginProps) {
13 12
    return (
14 13
        <Container>
15 14
            <Row className="min-vh-100 align-items-center">
......
36 35
    );
37 36
}
38 37

  
39
export default LoginLayout;
38
/**
39
 * Props prepared for the login form that is passed to the login layout.
40
 */
41
export type LoginProps = {
42
    children: React.ReactNode;
43
};

Také k dispozici: Unified diff