-
Notifications
You must be signed in to change notification settings - Fork 6
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
✨ Formate la valeur affichée dans le champ NumberInput #659
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Report for the pull request #659🌐 Translation statusUI's texts
FAQ's questions
|
src/app/layout.tsx
Outdated
@@ -51,6 +51,7 @@ export const marianne = localFont({ | |||
export default async function RootLayout({ children }: PropsWithChildren) { | |||
const lang = currentLocale() | |||
const region = await getGeolocation() | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary diff
function unformatNumber(number: string) { | ||
// Supprimer les séparateurs de milliers | ||
return Number(number.replace(/[^0-9.-]+/g, '')) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be static (e.g. helper or out of the component) to not re create function on each render
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes !
No description provided.