mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(web): reorder save button
This commit is contained in:
@@ -1339,11 +1339,10 @@ const StackBuilder = () => {
|
|||||||
duration: 4000,
|
duration: 4000,
|
||||||
});
|
});
|
||||||
} else if (compatibilityAnalysis.changes.length > 1) {
|
} else if (compatibilityAnalysis.changes.length > 1) {
|
||||||
const message = `${
|
const message = `${compatibilityAnalysis.changes.length
|
||||||
compatibilityAnalysis.changes.length
|
} compatibility adjustments made:\n${compatibilityAnalysis.changes
|
||||||
} compatibility adjustments made:\n${compatibilityAnalysis.changes
|
.map((c) => `• ${c.message}`)
|
||||||
.map((c) => `• ${c.message}`)
|
.join("\n")}`;
|
||||||
.join("\n")}`;
|
|
||||||
toast.info(message, {
|
toast.info(message, {
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
});
|
});
|
||||||
@@ -1951,6 +1950,15 @@ const StackBuilder = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="grid grid-cols-2 gap-2">
|
<div className="grid grid-cols-2 gap-2">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={saveCurrentStack}
|
||||||
|
className="flex items-center justify-center gap-2 rounded-md border border-border bg-fd-background px-3 py-2 font-medium text-muted-foreground text-xs transition-all hover:border-muted-foreground/30 hover:bg-muted hover:text-foreground"
|
||||||
|
title="Save current preferences"
|
||||||
|
>
|
||||||
|
<Star className="h-3.5 w-3.5" />
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
{lastSavedStack ? (
|
{lastSavedStack ? (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -1964,15 +1972,6 @@ const StackBuilder = () => {
|
|||||||
) : (
|
) : (
|
||||||
<div className="h-9" />
|
<div className="h-9" />
|
||||||
)}
|
)}
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={saveCurrentStack}
|
|
||||||
className="flex items-center justify-center gap-2 rounded-md border border-border bg-fd-background px-3 py-2 font-medium text-muted-foreground text-xs transition-all hover:border-muted-foreground/30 hover:bg-muted hover:text-foreground"
|
|
||||||
title="Save current preferences"
|
|
||||||
>
|
|
||||||
<Star className="h-3.5 w-3.5" />
|
|
||||||
Save
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ShareDialog stackUrl={getStackUrl()} stackState={stack}>
|
<ShareDialog stackUrl={getStackUrl()} stackState={stack}>
|
||||||
@@ -2095,10 +2094,10 @@ const StackBuilder = () => {
|
|||||||
|
|
||||||
const disabledReason = isDisabled
|
const disabledReason = isDisabled
|
||||||
? getDisabledReason(
|
? getDisabledReason(
|
||||||
stack,
|
stack,
|
||||||
categoryKey as keyof typeof TECH_OPTIONS,
|
categoryKey as keyof typeof TECH_OPTIONS,
|
||||||
tech.id,
|
tech.id,
|
||||||
)
|
)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user