Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create AUP page #29

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Create AUP page #29

wants to merge 1 commit into from

Conversation

SteDev2
Copy link
Contributor

@SteDev2 SteDev2 commented May 29, 2024

No description provided.

@SteDev2 SteDev2 linked an issue May 29, 2024 that may be closed by this pull request
@SteDev2 SteDev2 marked this pull request as draft May 29, 2024 15:23
Copy link
Collaborator

@jacogasp jacogasp Jun 3, 2024

Choose a reason for hiding this comment

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

This component should be placed to /src/app/(pages)/aup/components/ instead of /src/app/(page)/components

import { Aup } from "@/models/aup";

const calculate = (aup: Aup) => {
const newDate = new Date(aup?.lastUpdateTime as Date);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why create a new Date from a Date?

Copy link
Collaborator

Choose a reason for hiding this comment

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

What about if aup is not defined?

Copy link
Collaborator

Choose a reason for hiding this comment

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

calculate is too generic

Copy link

sonarcloud bot commented Jun 13, 2024

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

Create "AUP" Page
3 participants