Base du projet 'application ticketing'
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
import React from 'react'
|
||||
import React, { useEffect } from 'react'
|
||||
|
||||
export default class Page extends React.PureComponent {
|
||||
render() {
|
||||
return (
|
||||
<div className="container-fluid">
|
||||
{ this.props.children }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default function Page({ title, children }) {
|
||||
useEffect(() => {
|
||||
document.title = title ? `${title } - PleaseWait` : 'PleaseWait';
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="container-fluid">
|
||||
{ children }
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user