Open a finished Rule from its Profile card, and drop it from the browser on Log out.
This commit is contained in:
1 parent
db1599123b
commit
942c7cc9de
17 files changed
+280
-14
No files matched your search
@@ -14,6 +14,7 @@ import Alert from "../../../components/modals/Alert";
|
||||
import HeaderLockup from "../../../components/type/HeaderLockup";
|
||||
import { useTranslation } from "../../../contexts/MessagesContext";
|
||||
import type { CreateFlowState } from "../../create/types";
|
||||
import { createCompletedPath } from "../../create/utils/createFlowPaths";
|
||||
import type {
|
||||
MyPublishedRule,
|
||||
ServerDraftForProfile,
|
||||
@@ -399,6 +400,8 @@ export function ProfilePageView({
|
||||
description={rule.summary ?? undefined}
|
||||
expanded
|
||||
size={ruleCardSize}
|
||||
href={createCompletedPath({ ruleId: rule.id })}
|
||||
ariaLabel={rule.title}
|
||||
hasBottomLinks
|
||||
bottomStatusLabel={t("finishedBadge")}
|
||||
bottomLinks={[
|
||||
@@ -422,7 +425,7 @@ export function ProfilePageView({
|
||||
rule.title,
|
||||
)}
|
||||
backgroundColor="bg-[var(--color-surface-invert-brand-teal)]"
|
||||
className={ownedRuleCardShellClass}
|
||||
className={ruleCardShellClass}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
@@ -449,7 +452,8 @@ export function ProfilePageView({
|
||||
description={rule.summary ?? undefined}
|
||||
expanded
|
||||
size={ruleCardSize}
|
||||
href={`/invite/${encodeURIComponent(rule.id)}`}
|
||||
href={`/rules/${encodeURIComponent(rule.id)}`}
|
||||
ariaLabel={rule.title}
|
||||
communityInitials={communityInitialsFromTitle(
|
||||
rule.title,
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user