Add board type binding support
This commit is contained in:
1 parent
07ff25bf7e
commit
f76b22b303
16 files changed
+496
-99
No files matched your search
@@ -17,7 +17,7 @@ export function LinkSelect({
|
||||
teamId?: string;
|
||||
isCollapsed?: boolean;
|
||||
} & SelectProps) {
|
||||
const { t, messages } = useMessages();
|
||||
const { t, labels, messages } = useMessages();
|
||||
const { data: link } = useLinkQuery(linkId);
|
||||
const [name, setName] = useState<string>(link?.name);
|
||||
const [search, setSearch] = useState('');
|
||||
@@ -42,12 +42,16 @@ export function LinkSelect({
|
||||
return '';
|
||||
}
|
||||
|
||||
const value = name || props.placeholder || t(labels.link);
|
||||
|
||||
return (
|
||||
<Row alignItems="center" gap>
|
||||
<Icon>
|
||||
<Link />
|
||||
</Icon>
|
||||
<Text truncate>{name}</Text>
|
||||
<Text truncate color={name ? undefined : 'muted'}>
|
||||
{value}
|
||||
</Text>
|
||||
</Row>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ export function PixelSelect({
|
||||
teamId?: string;
|
||||
isCollapsed?: boolean;
|
||||
} & SelectProps) {
|
||||
const { t, messages } = useMessages();
|
||||
const { t, labels, messages } = useMessages();
|
||||
const { data: pixel } = usePixelQuery(pixelId);
|
||||
const [name, setName] = useState<string>(pixel?.name);
|
||||
const [search, setSearch] = useState('');
|
||||
@@ -42,12 +42,16 @@ export function PixelSelect({
|
||||
return '';
|
||||
}
|
||||
|
||||
const value = name || props.placeholder || t(labels.pixel);
|
||||
|
||||
return (
|
||||
<Row alignItems="center" gap>
|
||||
<Icon>
|
||||
<Grid2x2 />
|
||||
</Icon>
|
||||
<Text truncate>{name}</Text>
|
||||
<Text truncate color={name ? undefined : 'muted'}>
|
||||
{value}
|
||||
</Text>
|
||||
</Row>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user