mirror of
https://github.com/block/buzz.git
synced 2026-10-30 14:01:37 +00:00
## Summary - simplify Add community into clear create and join paths - align community actions and icon editing across the rail, profile menu, and settings - consolidate invites around the member list and a reusable link dialog ## Testing - `pnpm check` - `pnpm test` (3,483 passed) - `pnpm run build:e2e` - focused Playwright coverage (34 passed) ## Snapshots | Add a community | Join an existing community | | --- | --- | |  |  | | Create a new community | Hosted community icon | | --- | --- | |  |  | | Invites | Invite link | | --- | --- | |  |  | --------- Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Carl <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
17 lines
382 B
TypeScript
17 lines
382 B
TypeScript
import type * as React from "react";
|
|
|
|
export function isAvatarFileDrag(event: React.DragEvent<HTMLElement>) {
|
|
return Array.from(event.dataTransfer.types).includes("Files");
|
|
}
|
|
|
|
export const AVATAR_APPLY_MOTION_TRANSITION = {
|
|
duration: 0.14,
|
|
ease: [0.23, 1, 0.32, 1],
|
|
} as const;
|
|
|
|
export type AvatarTab = "image" | "emoji";
|
|
|
|
export type EmojiMartEmoji = {
|
|
native?: string;
|
|
};
|