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

chore: refactor code #497

Merged
merged 1 commit into from
Aug 30, 2024
Merged

chore: refactor code #497

merged 1 commit into from
Aug 30, 2024

Conversation

wirednkod
Copy link
Collaborator

Cherry-pick of #496

Copy link

Deploying dashboard with  Cloudflare Pages  Cloudflare Pages

Latest commit: d77ddd5
Status: ✅  Deploy successful!
Preview URL: https://fafbc012.dashboard-a6v.pages.dev
Branch Preview URL: https://nik-refactor-code.dashboard-a6v.pages.dev

View logs

@wirednkod wirednkod merged commit 7a072fa into main Aug 30, 2024
4 checks passed
@wirednkod wirednkod deleted the nik-refactor-code branch August 30, 2024 14:57
Comment on lines +33 to +34
const reusableH1 =
'font-unbounded text-primary flex-1 shrink-0 whitespace-nowrap text-xl font-semibold tracking-tight sm:grow-0'
Copy link
Contributor

@peetzweg peetzweg Aug 30, 2024

Choose a reason for hiding this comment

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

Why like this and not also similar to main in index.css

h1 {
 @apply font-unbounded text-primary flex-1 shrink-0 whitespace-nowrap text-xl font-semibold tracking-tight sm:grow-0;
}

I don't see any benefit to doing this and just causes confusion what to use.

It will still be extendable on demand via className prop.

Copy link
Collaborator Author

@wirednkod wirednkod Aug 30, 2024

Choose a reason for hiding this comment

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

Thats ok. It was forgotten. Will fix in later pr

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