Skip to content

Commit

Permalink
Fix alias without a timestamp bump version sort imports on aliasedEma…
Browse files Browse the repository at this point in the history
…il.tsx
  • Loading branch information
mikikiv committed Feb 12, 2024
1 parent a7175e4 commit 593ece4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
14 changes: 7 additions & 7 deletions components/AliasedEmails.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { AliasType } from "@/components/types"
import { colorSelector } from "@/utils/colorSelector"
import { faker } from "@faker-js/faker"
import {
Box,
Button,
Expand All @@ -14,7 +17,6 @@ import {
rem,
} from "@mantine/core"
import { useLocalStorage } from "@mantine/hooks"
import { faker } from "@faker-js/faker"
import {
IconAlertCircle,
IconCopy,
Expand All @@ -23,12 +25,10 @@ import {
IconSettingsCancel,
IconX,
} from "@tabler/icons-react"
import { useEffect, useState } from "react"
import aliasedEmail from "aliased-email"
import { useAtom } from "jotai"
import { colorSelector } from "@/utils/colorSelector"
import { useEffect, useState } from "react"
import { localCopyHistoryAtom } from "./global/CopyHistory"
import { AliasType } from "@/components/types"
import aliasedEmail, { aliasedEmailObject } from "aliased-email"

type Props = { extension?: boolean }

Expand Down Expand Up @@ -78,8 +78,8 @@ export default function InputCreator({ extension }: Props) {
: realtimeTimestamp
)
: selectedAlias
? aliasedEmailObject(email, selectedAlias).email
: aliasedEmailObject(email).email
? aliasedEmail(email, selectedAlias)
: email
)
}, [email, selectedAlias, realtimeTimestamp, timestampEnabled])

Expand Down
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
{
"name": "quick-lorem",
"version": "1.3.1",
"version": "1.3.2",
"author": {
"name": "Mikey Villavicencio",
"email": "villavicem@gmail.com"
},
"description": "A quick lorem ipsum generator",
"license": "GPL",
"keywords": [
"next",
"mantine",
"typescript",
"react",
"lorem"
],
"keywords": ["next", "mantine", "typescript", "react", "lorem"],
"repository": {
"type": "git",
"url": "https://github.com/mikikiv/quick-lorem.git"
Expand Down

1 comment on commit 593ece4

@vercel
Copy link

@vercel vercel bot commented on 593ece4 Feb 13, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.