Skip to content

Commit

Permalink
Min words: 2
Browse files Browse the repository at this point in the history
  • Loading branch information
thecarlo committed May 29, 2024
1 parent 0ba2fe7 commit bf02bcd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_ANALYTICS_ID=G-NZ7P4Z286W
2 changes: 1 addition & 1 deletion src/components/GeneratePassword/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export const GeneratePassword = (props: GeneratePasswordProps) => {
<input
type="range"
className="w-full"
min={passwordMode === PasswordMode.Password ? 12 : 3}
min={passwordMode === PasswordMode.Password ? 12 : 2}
max={passwordMode === PasswordMode.Password ? 100 : 10}
value={length}
onChange={(ev: React.ChangeEvent<HTMLInputElement>) => {
Expand Down
8 changes: 8 additions & 0 deletions types/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="vite/client" />

interface ImportMeta {
env: {
[key: string]: string | boolean | undefined;
VITE_ANALYTICS_ID: string;
};
}

0 comments on commit bf02bcd

Please # to comment.