mirror of
https://github.com/mue/mue.git
synced 2026-07-19 06:54:10 +02:00
unfinished birthday greeting feature
This commit is contained in:
@@ -47,6 +47,10 @@ export default class Greeting extends React.PureComponent {
|
||||
|
||||
if (custom === 'false') name = name.replace(',', '');
|
||||
|
||||
// Birthday
|
||||
const birth = new Date(localStorage.getItem('birthday'));
|
||||
if (birth.getDate() === now.getDate() && birth.getMonth() === now.getMonth() && birth.getFullYear() !== 1001) message = 'Happy Birthday';
|
||||
|
||||
// Set the state to the greeting string
|
||||
this.setState({
|
||||
greeting: `${message}${name}`
|
||||
|
||||
Reference in New Issue
Block a user