Skip to content

Commit f06c8d9

Browse files
committed
remove comments
1 parent 86314d7 commit f06c8d9

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

app/api/badge/v2/[login]/route.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ import { posthog } from '@/lib/posthog/posthog-node-client';
77

88
type Props = { params: Promise<{ login: string }> };
99

10-
// ranking = stars / contributions / followers
11-
// context = global / country
12-
// type = position / tier / percentile
13-
// position-type = none / monthly-change / percentile
14-
// tier-type = none / goal
15-
// label = text
16-
// left-color = hex
17-
// right-color = hex
18-
1910
export async function GET(req: NextRequest, { params }: Props) {
2011
const { login } = await params;
2112

app/badge/builder/[[...login]]/components/color-picker-field.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export function ColorPickerField({ name, label, placeholder, defaultValue }: Pro
3333
const [open, setOpen] = useState(false);
3434
const [hsva, setHsva] = useState(() => hexToHsva(selectedHex));
3535

36-
// синхронізуємо локальний hsva, якщо значення поля змінюється ззовні
3736
useEffect(() => {
3837
setHsva(hexToHsva(selectedHex));
3938
}, [selectedHex]);
@@ -79,7 +78,7 @@ export function ColorPickerField({ name, label, placeholder, defaultValue }: Pro
7978
/>
8079
</PopoverContent>
8180
</Popover>
82-
<FormControl /> {/* сумісність із shadcn Form API; можна прибрати якщо не потрібно */}
81+
<FormControl />
8382
<FormMessage>{fieldState.error?.message}</FormMessage>
8483
</FormItem>
8584
);

0 commit comments

Comments
 (0)