fix: Minor UI fix to team profile / fallback to parent org logo (#14143)
This commit is contained in:
1 parent
85425649d4
commit
8edf55f946
3 files changed
+10
-15
No files matched your search
@@ -15,7 +15,7 @@ interface Props {
|
||||
}
|
||||
|
||||
export default function TeamList(props: Props) {
|
||||
const utils = trpc.useContext();
|
||||
const utils = trpc.useUtils();
|
||||
|
||||
const { t } = useLocale();
|
||||
|
||||
@@ -56,7 +56,6 @@ export default function TeamList(props: Props) {
|
||||
setHideDropdown={setHideDropdown}
|
||||
/>
|
||||
))}
|
||||
|
||||
{/* only show recommended steps when there is only one team */}
|
||||
{!props.pending && props.teams.length === 1 && (
|
||||
<>
|
||||
|
||||
@@ -107,8 +107,8 @@ export default function TeamListItem(props: Props) {
|
||||
<div className="item-center flex px-5 py-5">
|
||||
<Avatar
|
||||
size="md"
|
||||
imageSrc={getPlaceholderAvatar(team?.logo, team?.name as string)}
|
||||
alt="Team Logo"
|
||||
imageSrc={getPlaceholderAvatar(team?.logo || team?.parent?.logo, team?.name as string)}
|
||||
alt="Team logo"
|
||||
className="inline-flex justify-center"
|
||||
/>
|
||||
<div className="ms-3 inline-block truncate">
|
||||
|
||||
@@ -364,17 +364,13 @@ const TeamProfileForm = ({ team }: TeamProfileFormProps) => {
|
||||
<Controller
|
||||
control={form.control}
|
||||
name="name"
|
||||
render={({ field: { value } }) => (
|
||||
<div className="mt-8">
|
||||
<TextField
|
||||
name="name"
|
||||
label={t("team_name")}
|
||||
value={value}
|
||||
onChange={(e) => {
|
||||
form.setValue("name", e?.target.value, { shouldDirty: true });
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
render={({ field: { name, value, onChange } }) => (
|
||||
<TextField
|
||||
name={name}
|
||||
label={t("team_name")}
|
||||
value={value}
|
||||
onChange={(e) => onChange(e?.target.value)}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
<Controller
|
||||
|
||||
Reference in new issue
Block a user