Make blue default sticky note color

This commit is contained in:
Joey
2025-12-04 12:12:04 +00:00
parent 91ba4bc419
commit 329da8298a
2 changed files with 2 additions and 2 deletions
@@ -45,7 +45,7 @@ export function ExploreMapStickyNote({ postIt, zoom }: ExploreMapStickyNoteProps
const [editText, setEditText] = useState(postIt.text);
const [dragStartPos, setDragStartPos] = useState<{ x: number; y: number } | null>(null);
const colorInfo = STICKY_NOTE_COLORS.find((c) => c.name === postIt.color) || STICKY_NOTE_COLORS.find((c) => c.name === 'purple') || STICKY_NOTE_COLORS[0];
const colorInfo = STICKY_NOTE_COLORS.find((c) => c.name === postIt.color) || STICKY_NOTE_COLORS.find((c) => c.name === 'blue') || STICKY_NOTE_COLORS[0];
const handleDragStart: RndDragCallback = useCallback(
(_e, data) => {
@@ -678,7 +678,7 @@ export class CRDTStateManager {
postItId,
position,
text: text || '',
color: color || 'purple',
color: color || 'blue',
createdBy,
},
};