mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 22:40:29 +03:00
Add a chip and setting for user timezones
This commit is contained in:
parent
3c1aa0e699
commit
c3901804c0
4 changed files with 289 additions and 15 deletions
|
|
@ -19,6 +19,9 @@ import {
|
||||||
Box,
|
Box,
|
||||||
Scroll,
|
Scroll,
|
||||||
Avatar,
|
Avatar,
|
||||||
|
TooltipProvider,
|
||||||
|
Tooltip,
|
||||||
|
Badge,
|
||||||
} from 'folds';
|
} from 'folds';
|
||||||
import { useMatrixClient } from '../../hooks/useMatrixClient';
|
import { useMatrixClient } from '../../hooks/useMatrixClient';
|
||||||
import { getMxIdServer } from '../../utils/matrix';
|
import { getMxIdServer } from '../../utils/matrix';
|
||||||
|
|
@ -41,6 +44,7 @@ import { useTimeoutToggle } from '../../hooks/useTimeoutToggle';
|
||||||
import { useIgnoredUsers } from '../../hooks/useIgnoredUsers';
|
import { useIgnoredUsers } from '../../hooks/useIgnoredUsers';
|
||||||
import { CutoutCard } from '../cutout-card';
|
import { CutoutCard } from '../cutout-card';
|
||||||
import { SettingTile } from '../setting-tile';
|
import { SettingTile } from '../setting-tile';
|
||||||
|
import { useInterval } from '../../hooks/useInterval';
|
||||||
|
|
||||||
export function ServerChip({ server }: { server: string }) {
|
export function ServerChip({ server }: { server: string }) {
|
||||||
const mx = useMatrixClient();
|
const mx = useMatrixClient();
|
||||||
|
|
@ -512,3 +516,66 @@ export function OptionsChip({ userId }: { userId: string }) {
|
||||||
</PopOut>
|
</PopOut>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function TimezoneChip({ timezone }: { timezone: string }) {
|
||||||
|
const shortFormat = useMemo(
|
||||||
|
() =>
|
||||||
|
new Intl.DateTimeFormat(undefined, {
|
||||||
|
dateStyle: undefined,
|
||||||
|
timeStyle: 'short',
|
||||||
|
timeZone: timezone,
|
||||||
|
}),
|
||||||
|
[timezone]
|
||||||
|
);
|
||||||
|
const longFormat = useMemo(
|
||||||
|
() =>
|
||||||
|
new Intl.DateTimeFormat(undefined, {
|
||||||
|
dateStyle: 'long',
|
||||||
|
timeStyle: 'short',
|
||||||
|
timeZone: timezone,
|
||||||
|
}),
|
||||||
|
[timezone]
|
||||||
|
);
|
||||||
|
const [shortTime, setShortTime] = useState(shortFormat.format());
|
||||||
|
const [longTime, setLongTime] = useState(longFormat.format());
|
||||||
|
|
||||||
|
useInterval(() => {
|
||||||
|
setShortTime(shortFormat.format());
|
||||||
|
setLongTime(longFormat.format());
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<TooltipProvider
|
||||||
|
position="Top"
|
||||||
|
offset={5}
|
||||||
|
align="Center"
|
||||||
|
tooltip={
|
||||||
|
<Tooltip variant='SurfaceVariant' style={{ maxWidth: toRem(280) }}>
|
||||||
|
<Box direction="Column" alignItems='Start' gap="100">
|
||||||
|
<Box gap="100">
|
||||||
|
<Text size="L400">Timezone:</Text>
|
||||||
|
<Badge size="400" variant="Primary">
|
||||||
|
<Text size="T200">{timezone}</Text>
|
||||||
|
</Badge>
|
||||||
|
</Box>
|
||||||
|
<Text size="T200">{longTime}</Text>
|
||||||
|
</Box>
|
||||||
|
</Tooltip>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{(triggerRef) => (
|
||||||
|
<Chip
|
||||||
|
ref={triggerRef}
|
||||||
|
variant="SurfaceVariant"
|
||||||
|
radii="Pill"
|
||||||
|
style={{ cursor: "initial" }}
|
||||||
|
before={<Icon size="50" src={Icons.RecentClock} />}
|
||||||
|
>
|
||||||
|
<Text size="B300" truncate>
|
||||||
|
{shortTime}
|
||||||
|
</Text>
|
||||||
|
</Chip>
|
||||||
|
)}
|
||||||
|
</TooltipProvider>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import { UserPresence } from '../../hooks/useUserPresence';
|
||||||
import { AvatarPresence, PresenceBadge } from '../presence';
|
import { AvatarPresence, PresenceBadge } from '../presence';
|
||||||
import { ImageViewer } from '../image-viewer';
|
import { ImageViewer } from '../image-viewer';
|
||||||
import { stopPropagation } from '../../utils/keyboard';
|
import { stopPropagation } from '../../utils/keyboard';
|
||||||
import { extendedProfileFields } from '../../hooks/useExtendedProfile';
|
import { ExtendedProfile } from '../../hooks/useExtendedProfile';
|
||||||
|
|
||||||
type UserHeroProps = {
|
type UserHeroProps = {
|
||||||
userId: string;
|
userId: string;
|
||||||
|
|
@ -96,7 +96,7 @@ export function UserHero({ userId, avatarUrl, presence }: UserHeroProps) {
|
||||||
type UserHeroNameProps = {
|
type UserHeroNameProps = {
|
||||||
displayName?: string;
|
displayName?: string;
|
||||||
userId: string;
|
userId: string;
|
||||||
extendedProfile?: extendedProfileFields;
|
extendedProfile?: ExtendedProfile;
|
||||||
};
|
};
|
||||||
export function UserHeroName({ displayName, userId, extendedProfile }: UserHeroNameProps) {
|
export function UserHeroName({ displayName, userId, extendedProfile }: UserHeroNameProps) {
|
||||||
const username = getMxIdLocalPart(userId);
|
const username = getMxIdLocalPart(userId);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Box, Button, config, Icon, Icons, Text } from 'folds';
|
import { Box, Button, config, Icon, Icons, Text } from 'folds';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect, useMemo } from 'react';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { UserHero, UserHeroName } from './UserHero';
|
import { UserHero, UserHeroName } from './UserHero';
|
||||||
import { getMxIdServer, mxcUrlToHttp } from '../../utils/matrix';
|
import { getMxIdServer, mxcUrlToHttp } from '../../utils/matrix';
|
||||||
|
|
@ -9,7 +9,7 @@ import { useMediaAuthentication } from '../../hooks/useMediaAuthentication';
|
||||||
import { usePowerLevels } from '../../hooks/usePowerLevels';
|
import { usePowerLevels } from '../../hooks/usePowerLevels';
|
||||||
import { useRoom } from '../../hooks/useRoom';
|
import { useRoom } from '../../hooks/useRoom';
|
||||||
import { useUserPresence } from '../../hooks/useUserPresence';
|
import { useUserPresence } from '../../hooks/useUserPresence';
|
||||||
import { IgnoredUserAlert, MutualRoomsChip, OptionsChip, ServerChip, ShareChip } from './UserChips';
|
import { IgnoredUserAlert, MutualRoomsChip, OptionsChip, ServerChip, ShareChip, TimezoneChip } from './UserChips';
|
||||||
import { useCloseUserRoomProfile } from '../../state/hooks/userRoomProfile';
|
import { useCloseUserRoomProfile } from '../../state/hooks/userRoomProfile';
|
||||||
import { PowerChip } from './PowerChip';
|
import { PowerChip } from './PowerChip';
|
||||||
import { UserInviteAlert, UserBanAlert, UserModeration, UserKickAlert } from './UserModeration';
|
import { UserInviteAlert, UserBanAlert, UserModeration, UserKickAlert } from './UserModeration';
|
||||||
|
|
@ -60,6 +60,16 @@ export function UserRoomProfile({ userId }: UserRoomProfileProps) {
|
||||||
const avatarUrl = (avatarMxc && mxcUrlToHttp(mx, avatarMxc, useAuthentication)) ?? undefined;
|
const avatarUrl = (avatarMxc && mxcUrlToHttp(mx, avatarMxc, useAuthentication)) ?? undefined;
|
||||||
const [extendedProfileState, refreshExtendedProfile] = useExtendedProfile(userId);
|
const [extendedProfileState, refreshExtendedProfile] = useExtendedProfile(userId);
|
||||||
const extendedProfile = extendedProfileState.status === AsyncStatus.Success ? extendedProfileState.data : undefined;
|
const extendedProfile = extendedProfileState.status === AsyncStatus.Success ? extendedProfileState.data : undefined;
|
||||||
|
const timezone = useMemo(() => {
|
||||||
|
// @ts-expect-error Intl.supportedValuesOf isn't in the types yet
|
||||||
|
const supportedTimezones = Intl.supportedValuesOf('timeZone') as string[];
|
||||||
|
const profileTimezone = extendedProfile?.['us.cloke.msc4175.tz'];
|
||||||
|
if (profileTimezone && supportedTimezones.includes(profileTimezone)) {
|
||||||
|
return profileTimezone;
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
|
||||||
|
}, [extendedProfile]);
|
||||||
|
|
||||||
const presence = useUserPresence(userId);
|
const presence = useUserPresence(userId);
|
||||||
|
|
||||||
|
|
@ -107,6 +117,7 @@ export function UserRoomProfile({ userId }: UserRoomProfileProps) {
|
||||||
{creator ? <CreatorChip /> : <PowerChip userId={userId} />}
|
{creator ? <CreatorChip /> : <PowerChip userId={userId} />}
|
||||||
{userId !== myUserId && <MutualRoomsChip userId={userId} />}
|
{userId !== myUserId && <MutualRoomsChip userId={userId} />}
|
||||||
{userId !== myUserId && <OptionsChip userId={userId} />}
|
{userId !== myUserId && <OptionsChip userId={userId} />}
|
||||||
|
{timezone && <TimezoneChip timezone={timezone} />}
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
{ignored && <IgnoredUserAlert />}
|
{ignored && <IgnoredUserAlert />}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
import React, { ChangeEventHandler, ReactNode, useCallback, useMemo, useState } from 'react';
|
import React, {
|
||||||
|
ChangeEventHandler,
|
||||||
|
ReactNode,
|
||||||
|
useCallback,
|
||||||
|
useEffect,
|
||||||
|
useMemo,
|
||||||
|
useRef,
|
||||||
|
useState,
|
||||||
|
} from 'react';
|
||||||
import {
|
import {
|
||||||
Box,
|
Box,
|
||||||
Text,
|
Text,
|
||||||
|
|
@ -13,13 +21,17 @@ import {
|
||||||
Modal,
|
Modal,
|
||||||
config,
|
config,
|
||||||
Spinner,
|
Spinner,
|
||||||
|
toRem,
|
||||||
|
Dialog,
|
||||||
|
Header,
|
||||||
|
MenuItem,
|
||||||
} from 'folds';
|
} from 'folds';
|
||||||
import FocusTrap from 'focus-trap-react';
|
import FocusTrap from 'focus-trap-react';
|
||||||
import { UserEvent } from 'matrix-js-sdk';
|
import { UserEvent } from 'matrix-js-sdk';
|
||||||
import { SequenceCard } from '../../../components/sequence-card';
|
import { SequenceCard } from '../../../components/sequence-card';
|
||||||
import { SettingTile } from '../../../components/setting-tile';
|
import { SettingTile } from '../../../components/setting-tile';
|
||||||
import { useMatrixClient } from '../../../hooks/useMatrixClient';
|
import { useMatrixClient } from '../../../hooks/useMatrixClient';
|
||||||
import { getMxIdLocalPart, mxcUrlToHttp } from '../../../utils/matrix';
|
import { getMxIdLocalPart, getMxIdServer, mxcUrlToHttp } from '../../../utils/matrix';
|
||||||
import { useMediaAuthentication } from '../../../hooks/useMediaAuthentication';
|
import { useMediaAuthentication } from '../../../hooks/useMediaAuthentication';
|
||||||
import { useFilePicker } from '../../../hooks/useFilePicker';
|
import { useFilePicker } from '../../../hooks/useFilePicker';
|
||||||
import { useObjectURL } from '../../../hooks/useObjectURL';
|
import { useObjectURL } from '../../../hooks/useObjectURL';
|
||||||
|
|
@ -37,6 +49,9 @@ import {
|
||||||
import { ProfileFieldContextProvider, useProfileField } from './ProfileFieldContext';
|
import { ProfileFieldContextProvider, useProfileField } from './ProfileFieldContext';
|
||||||
import { AsyncStatus, useAsyncCallback } from '../../../hooks/useAsyncCallback';
|
import { AsyncStatus, useAsyncCallback } from '../../../hooks/useAsyncCallback';
|
||||||
import { FilterByValues } from '../../../../types/utils';
|
import { FilterByValues } from '../../../../types/utils';
|
||||||
|
import { CutoutCard } from '../../../components/cutout-card';
|
||||||
|
import { ServerChip, ShareChip, TimezoneChip } from '../../../components/user-profile/UserChips';
|
||||||
|
import { SequenceCardStyle } from '../styles.css';
|
||||||
|
|
||||||
function ProfileAvatar() {
|
function ProfileAvatar() {
|
||||||
const mx = useMatrixClient();
|
const mx = useMatrixClient();
|
||||||
|
|
@ -74,7 +89,13 @@ function ProfileAvatar() {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingTile>
|
<SettingTile
|
||||||
|
title={
|
||||||
|
<Text as="span" size="L400">
|
||||||
|
Avatar
|
||||||
|
</Text>
|
||||||
|
}
|
||||||
|
>
|
||||||
{uploadAtom ? (
|
{uploadAtom ? (
|
||||||
<Box gap="200" direction="Column">
|
<Box gap="200" direction="Column">
|
||||||
<CompactUploadCardRenderer
|
<CompactUploadCardRenderer
|
||||||
|
|
@ -200,9 +221,166 @@ function ProfileTextField<K extends keyof FilterByValues<ExtendedProfile, string
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ProfileTimezone() {
|
||||||
|
const { busy, value, setValue } = useProfileField('us.cloke.msc4175.tz');
|
||||||
|
const disabled = !useProfileFieldAllowed('us.cloke.msc4175.tz') || busy;
|
||||||
|
|
||||||
|
const inputRef = useRef<HTMLInputElement>(null);
|
||||||
|
const scrollRef = useRef<HTMLDivElement>(null);
|
||||||
|
const [overlayOpen, setOverlayOpen] = useState(false);
|
||||||
|
const [query, setQuery] = useState('');
|
||||||
|
|
||||||
|
// @ts-expect-error Intl.supportedValuesOf isn't in the types yet
|
||||||
|
const timezones = useMemo(() => Intl.supportedValuesOf('timeZone') as string[], []);
|
||||||
|
const filteredTimezones = timezones.filter(
|
||||||
|
(timezone) =>
|
||||||
|
query.length === 0 || timezone.toLowerCase().replace('_', ' ').includes(query.toLowerCase())
|
||||||
|
);
|
||||||
|
|
||||||
|
const handleSelect = useCallback(
|
||||||
|
(timezone: string) => {
|
||||||
|
setOverlayOpen(false);
|
||||||
|
setValue(timezone);
|
||||||
|
},
|
||||||
|
[setOverlayOpen, setValue]
|
||||||
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (overlayOpen) {
|
||||||
|
const scrollView = scrollRef.current;
|
||||||
|
const focusedItem = scrollView?.querySelector(`[data-tz="${value}"]`);
|
||||||
|
|
||||||
|
if (value && focusedItem && scrollView) {
|
||||||
|
focusedItem.scrollIntoView({
|
||||||
|
block: 'center',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, [scrollRef, value, overlayOpen]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<SettingTile
|
||||||
|
title={
|
||||||
|
<Text as="span" size="L400">
|
||||||
|
Timezone
|
||||||
|
</Text>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Overlay open={overlayOpen} backdrop={<OverlayBackdrop />}>
|
||||||
|
<OverlayCenter>
|
||||||
|
<FocusTrap
|
||||||
|
focusTrapOptions={{
|
||||||
|
initialFocus: () => inputRef.current,
|
||||||
|
allowOutsideClick: true,
|
||||||
|
clickOutsideDeactivates: true,
|
||||||
|
onDeactivate: () => setOverlayOpen(false),
|
||||||
|
escapeDeactivates: (evt) => {
|
||||||
|
evt.stopPropagation();
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Dialog variant="Surface">
|
||||||
|
<Header
|
||||||
|
style={{
|
||||||
|
padding: `0 ${config.space.S200} 0 ${config.space.S400}`,
|
||||||
|
borderBottomWidth: config.borderWidth.B300,
|
||||||
|
}}
|
||||||
|
variant="Surface"
|
||||||
|
size="500"
|
||||||
|
>
|
||||||
|
<Box grow="Yes">
|
||||||
|
<Text size="H4">Choose a Timezone</Text>
|
||||||
|
</Box>
|
||||||
|
<IconButton size="300" onClick={() => setOverlayOpen(false)} radii="300">
|
||||||
|
<Icon src={Icons.Cross} />
|
||||||
|
</IconButton>
|
||||||
|
</Header>
|
||||||
|
<Box style={{ padding: config.space.S400 }} direction="Column" gap="400">
|
||||||
|
<Input
|
||||||
|
ref={inputRef}
|
||||||
|
size="500"
|
||||||
|
variant="Background"
|
||||||
|
radii="400"
|
||||||
|
outlined
|
||||||
|
placeholder="Search"
|
||||||
|
before={<Icon size="200" src={Icons.Search} />}
|
||||||
|
value={query}
|
||||||
|
onChange={(evt) => setQuery(evt.currentTarget.value)}
|
||||||
|
/>
|
||||||
|
<CutoutCard ref={scrollRef} style={{ overflowY: 'scroll', height: toRem(300) }}>
|
||||||
|
{filteredTimezones.length === 0 && (
|
||||||
|
<Box
|
||||||
|
style={{ paddingTop: config.space.S700 }}
|
||||||
|
grow="Yes"
|
||||||
|
alignItems="Center"
|
||||||
|
justifyContent="Center"
|
||||||
|
direction="Column"
|
||||||
|
gap="100"
|
||||||
|
>
|
||||||
|
<Text size="H6" align="Center">
|
||||||
|
No Results
|
||||||
|
</Text>
|
||||||
|
</Box>
|
||||||
|
)}
|
||||||
|
{filteredTimezones.map((timezone) => (
|
||||||
|
<MenuItem
|
||||||
|
key={timezone}
|
||||||
|
data-tz={timezone}
|
||||||
|
variant={timezone === value ? 'Success' : 'Surface'}
|
||||||
|
fill={timezone === value ? 'Soft' : 'None'}
|
||||||
|
size="300"
|
||||||
|
radii="0"
|
||||||
|
after={<Icon size="50" src={Icons.ChevronRight} />}
|
||||||
|
onClick={() => handleSelect(timezone)}
|
||||||
|
>
|
||||||
|
<Box grow="Yes">
|
||||||
|
<Text size="T200" truncate>
|
||||||
|
{timezone}
|
||||||
|
</Text>
|
||||||
|
</Box>
|
||||||
|
</MenuItem>
|
||||||
|
))}
|
||||||
|
</CutoutCard>
|
||||||
|
</Box>
|
||||||
|
</Dialog>
|
||||||
|
</FocusTrap>
|
||||||
|
</OverlayCenter>
|
||||||
|
</Overlay>
|
||||||
|
<Box gap="200">
|
||||||
|
<Button
|
||||||
|
variant="Secondary"
|
||||||
|
fill="Soft"
|
||||||
|
size="300"
|
||||||
|
radii="300"
|
||||||
|
outlined
|
||||||
|
disabled={disabled}
|
||||||
|
onClick={() => setOverlayOpen(true)}
|
||||||
|
after={<Icon size="100" src={Icons.ChevronRight} />}
|
||||||
|
>
|
||||||
|
<Text size="B300">{value ?? 'Set Timezone'}</Text>
|
||||||
|
</Button>
|
||||||
|
{value && (
|
||||||
|
<Button
|
||||||
|
size="300"
|
||||||
|
variant="Critical"
|
||||||
|
fill="None"
|
||||||
|
radii="300"
|
||||||
|
disabled={disabled}
|
||||||
|
onClick={() => setValue(undefined)}
|
||||||
|
>
|
||||||
|
<Text size="B300">Remove Timezone</Text>
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
</Box>
|
||||||
|
</SettingTile>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
export function Profile() {
|
export function Profile() {
|
||||||
const mx = useMatrixClient();
|
const mx = useMatrixClient();
|
||||||
const userId = mx.getUserId() as string;
|
const userId = mx.getUserId() as string;
|
||||||
|
const server = getMxIdServer(userId);
|
||||||
|
|
||||||
const [extendedProfileState, refreshExtendedProfile] = useExtendedProfile(userId);
|
const [extendedProfileState, refreshExtendedProfile] = useExtendedProfile(userId);
|
||||||
const extendedProfile =
|
const extendedProfile =
|
||||||
|
|
@ -252,7 +430,8 @@ export function Profile() {
|
||||||
<Box direction="Column" gap="100">
|
<Box direction="Column" gap="100">
|
||||||
<Text size="L400">Profile</Text>
|
<Text size="L400">Profile</Text>
|
||||||
<SequenceCard
|
<SequenceCard
|
||||||
variant="SurfaceVariant"
|
variant="Surface"
|
||||||
|
outlined
|
||||||
direction="Column"
|
direction="Column"
|
||||||
style={{
|
style={{
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
|
|
@ -261,8 +440,7 @@ export function Profile() {
|
||||||
<ProfileFieldContextProvider fieldDefaults={fieldDefaults} save={handleSave} busy={busy}>
|
<ProfileFieldContextProvider fieldDefaults={fieldDefaults} save={handleSave} busy={busy}>
|
||||||
{(save, reset, hasChanges, fields) => {
|
{(save, reset, hasChanges, fields) => {
|
||||||
const heroAvatarUrl =
|
const heroAvatarUrl =
|
||||||
(fields.avatar_url &&
|
(fields.avatar_url && mxcUrlToHttp(mx, fields.avatar_url, useAuthentication)) ??
|
||||||
mxcUrlToHttp(mx, fields.avatar_url, useAuthentication)) ??
|
|
||||||
undefined;
|
undefined;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
@ -275,8 +453,26 @@ export function Profile() {
|
||||||
extendedProfile={fields}
|
extendedProfile={fields}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Box alignItems="Center" gap="200" wrap="Wrap">
|
||||||
|
{server && <ServerChip server={server} />}
|
||||||
|
<ShareChip userId={userId} />
|
||||||
|
{fields['us.cloke.msc4175.tz'] && (
|
||||||
|
<TimezoneChip timezone={fields['us.cloke.msc4175.tz']} />
|
||||||
|
)}
|
||||||
|
</Box>
|
||||||
|
</Box>
|
||||||
|
<SequenceCard
|
||||||
|
className={SequenceCardStyle}
|
||||||
|
variant="SurfaceVariant"
|
||||||
|
direction="Column"
|
||||||
|
gap="300"
|
||||||
|
radii='0'
|
||||||
|
outlined
|
||||||
|
style={{ borderLeftWidth: "0", borderRightWidth: "0", borderBottomWidth: "0" }}
|
||||||
|
>
|
||||||
<ProfileAvatar />
|
<ProfileAvatar />
|
||||||
<ProfileTextField field="displayname" label="Display Name" />
|
<ProfileTextField field="displayname" label="Display Name" />
|
||||||
|
<ProfileTimezone />
|
||||||
<Box gap="300">
|
<Box gap="300">
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
|
|
@ -304,7 +500,7 @@ export function Profile() {
|
||||||
<Text size="B300">Cancel</Text>
|
<Text size="B300">Cancel</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</SequenceCard>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue