Revize 98568917
Přidáno uživatelem Dominik Poch před asi 3 roky(ů)
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/components/props.tsx | ||
---|---|---|
1 |
type Props = { |
|
2 |
children: React.ReactNode; |
|
3 |
}; |
|
4 |
|
|
5 |
export default Props; |
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 Props from '../components/props';
|
|
4 |
import LoginProps from '../components/loginProps';
|
|
5 | 5 |
import { Col, Container, Row, Stack } from 'react-bootstrap'; |
6 | 6 |
|
7 | 7 |
/** |
... | ... | |
9 | 9 |
* @param props Html structure of a login form. |
10 | 10 |
* @returns The login screen. |
11 | 11 |
*/ |
12 |
function LoginLayout(props: Props) { |
|
12 |
function LoginLayout(props: LoginProps) {
|
|
13 | 13 |
return ( |
14 | 14 |
<Container> |
15 | 15 |
<Row className="min-vh-100 align-items-center"> |
Také k dispozici: Unified diff
Renamed props.tsx to loginProps.tsx
Props was too generic so I renamed it to show its purpose better.