Skip to content

Commit

Permalink
Merge pull request #47 from LittleFoxCompany/change-format-functions-…
Browse files Browse the repository at this point in the history
…and-title-styles

change-format-functions-and-title-styles
  • Loading branch information
jrmybtlr authored Mar 12, 2024
2 parents d12601b + bebdb80 commit dc9f7e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nuxt-module/docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1
v-html="splitByWords('Zippy little utils for your JavaScript projects.')"
id="title"
class="max-w-[1200px] text-balance text-center font-bold leading-[1.25em] text-gray-900 [font-size:_clamp(3em,8vw,6rem)] dark:text-white"></h1>
class="max-w-[1200px] text-balance text-center font-bold leading-[1.25em] text-gray-900 [font-size:_clamp(2.5em,8vw,6rem)] dark:text-white"></h1>

<div class="mt-20 flex items-center gap-3 max-md:flex-col">
<NuxtLink to="intro/introduction">
Expand Down
4 changes: 2 additions & 2 deletions src/2.formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const currencySymbols = new Map([
/**
* Format numbers into neat and formatted strings for people
*/
export function formatNumber(value: number, decimals: number = 2, locale: string = 'en-US'): string {
export function formatNumber(number: number, decimals: number = 2, locale: string = 'en-US'): string {
const safeDecimals = Math.max(0, Math.min(decimals, 20))

let config: any = {
Expand All @@ -60,7 +60,7 @@ export function formatNumber(value: number, decimals: number = 2, locale: string
/**
* Format numbers into local currency with extra smarts
*/
export function formatCurrency(value: number, decimals: number = 2, locale: string = 'en-US'): string {
export function formatCurrency(number: number, decimals: number = 2, locale: string = 'en-US'): string {
const safeDecimals = Math.max(0, Math.min(decimals, 20))

let config: any = {
Expand Down

0 comments on commit dc9f7e5

Please sign in to comment.