Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore(web): drop comments that restate share header code

Richie McIlroy4e85c2caaa34
diff --git a/apps/web/app/s/[videoId]/Share.tsx b/apps/web/app/s/[videoId]/Share.tsx
index 202ab1d96..0de12a16a 100644
--- a/apps/web/app/s/[videoId]/Share.tsx
+++ b/apps/web/app/s/[videoId]/Share.tsx
@@ -218,7 +218,6 @@ interface ShareProps {
* view is active.
*/
header?: React.ReactNode;
- /** Timeline view's slim bar replaces the header, so it carries its own way back. */
dashboardDestination?: ShareDashboardDestination | null;
}
diff --git a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx b/apps/web/app/s/[videoId]/_components/ShareHeader.tsx
index a9ac06189..c2b19fb92 100644
--- a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx
+++ b/apps/web/app/s/[videoId]/_components/ShareHeader.tsx
@@ -140,11 +140,6 @@ const TITLE_TEXT_CLASS =
const TITLE_PLACEHOLDER = "Cap title";
-/**
- * One shape for every button in the action bar. Phones get a 40px target and
- * share the row in equal columns; from `sm` up the buttons size to their
- * labels at the compact header height.
- */
const ACTION_BAR_BUTTON_CLASS =
"h-10 min-w-0 gap-1.5 rounded-full px-3 text-[13px] sm:h-8 sm:px-2.5 sm:text-xs";
@@ -198,11 +193,6 @@ export const ShareHeader = ({
* Resolves late and never blocks the header (see `ViewCount`).
*/
views?: MaybePromise<number | null>;
- /**
- * Where "back" goes for a viewer this Cap belongs to or was shared with:
- * the owner's folder or library, or the space it reached them through.
- * Null for everyone else, who has nothing on the dashboard to return to.
- */
dashboardDestination?: ShareDashboardDestination | null;
}) => {
const user = useCurrentUser();