forked from Shinonome/dots-hyprland
less nesting
This commit is contained in:
@@ -236,8 +236,7 @@ const arr = (s, n) => {
|
||||
return array;
|
||||
};
|
||||
|
||||
const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) => {
|
||||
return Widget.Box({
|
||||
const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) => Widget.Box({
|
||||
children: arr(startWorkspace, workspaces).map(Workspace),
|
||||
attribute: {
|
||||
update: box => {
|
||||
@@ -268,11 +267,9 @@ const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) =>
|
||||
})
|
||||
,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export default () => {
|
||||
const overviewRevealer = Widget.Revealer({
|
||||
export default () => Widget.Revealer({
|
||||
revealChild: true,
|
||||
transition: 'slide_down',
|
||||
transitionDuration: 200,
|
||||
@@ -287,5 +284,3 @@ export default () => {
|
||||
)
|
||||
}),
|
||||
});
|
||||
return overviewRevealer;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user