Skip to content

Feat: Add header with timestamp and logo#5

Merged
btkcodedev merged 5 commits intobtkcodedev:mainfrom
joset98:feat/iss-3/header-timestamp-logo
Mar 10, 2025
Merged

Feat: Add header with timestamp and logo#5
btkcodedev merged 5 commits intobtkcodedev:mainfrom
joset98:feat/iss-3/header-timestamp-logo

Conversation

@joset98
Copy link
Contributor

@joset98 joset98 commented Mar 2, 2025

Description

Implements the functionality to add a header to the application. The header displays the current timestamp and project logo, providing useful information and enhancing visual presentation.

Changes made:

  • Added a header at the top of the application.
  • The header displays the current timestamp, allowing users to know the exact time.

Issue

#3

Screenshot

image

@joset98
Copy link
Contributor Author

joset98 commented Mar 2, 2025

@btkcodedev could yoy help to review please 🙏

Copy link
Owner

@btkcodedev btkcodedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some lints, Thanks! Great work


</Sheet>
);
} No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF

@@ -0,0 +1,62 @@
import * as React from 'react';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import useEffect, useState directly to avoid React. usage

export default function Header() {
const [currentTime, setCurrentTime] = React.useState<string>("")

React.useEffect(() => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using React. for cleaner code

@btkcodedev
Copy link
Owner

The PR name should be in convention work: definition Example: feat: Add timestamp for consistency

@joset98 joset98 changed the title Feat/iss 3/header timestamp logo Feat: Add header with timestamp and logo Mar 5, 2025
@joset98
Copy link
Contributor Author

joset98 commented Mar 5, 2025

Thanks for feedback let me fix

@joset98 joset98 requested a review from btkcodedev March 10, 2025 14:49
@btkcodedev
Copy link
Owner

Yep, All good!

@btkcodedev btkcodedev merged commit 31be705 into btkcodedev:main Mar 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants