Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(desktop): add optional id prop to SettingItem

Richie McIlroy3f79ad7facc7
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsx b/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsx
index 3978348cd..f9cb97d2a 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsx
@@ -71,13 +71,17 @@ export function SectionRows(props: ParentProps) {
}
export function SettingItem(props: {
+ id?: string;
pro?: boolean;
label: string;
description?: string;
children: JSX.Element;
}) {
return (
- <div class="cap-setting-row flex flex-row gap-4 justify-between items-center px-4 py-3.5">
+ <div
+ id={props.id}
+ class="cap-setting-row flex flex-row gap-4 justify-between items-center px-4 py-3.5"
+ >
<div class="flex flex-col flex-1 min-w-0 gap-0.5">
<p class="text-[13px] text-gray-12">{props.label}</p>
<Show when={props.description}>