TimelinePanel: now can close expaneded toot
This commit is contained in:
parent
49576c0688
commit
bd1a515ef8
1 changed files with 3 additions and 3 deletions
|
@ -146,7 +146,7 @@ const TimelinePanel: Component<{
|
|||
expanded={item.id === expandedThreadId() ? 1 : 0}
|
||||
onExpandChange={(x) => {
|
||||
if (item.id !== expandedThreadId()) {
|
||||
setExpandedThreadId(item.id);
|
||||
setExpandedThreadId((x) => (x ? undefined : item.id));
|
||||
} else if (x === 2) {
|
||||
props.openFullScreenToot(item, element);
|
||||
}
|
||||
|
@ -205,8 +205,8 @@ const Home: ParentComponent = (props) => {
|
|||
}
|
||||
};
|
||||
const client = () => {
|
||||
const all = profiles()
|
||||
return all?.[0]?.client
|
||||
const all = profiles();
|
||||
return all?.[0]?.client;
|
||||
};
|
||||
const navigate = useNavigate();
|
||||
|
||||
|
|
Loading…
Reference in a new issue