guest pwa: hide tasks when inactive and improve empty gallery state
This commit is contained in:
@@ -11,6 +11,7 @@ export type CompassAction = {
|
||||
label: string;
|
||||
icon?: React.ReactNode;
|
||||
onPress?: () => void;
|
||||
disabled?: boolean;
|
||||
};
|
||||
|
||||
type CompassHubProps = {
|
||||
@@ -128,7 +129,12 @@ export default function CompassHub({
|
||||
{quadrants.map((action, index) => (
|
||||
<Button
|
||||
key={action.key}
|
||||
disabled={action.disabled}
|
||||
opacity={action.disabled ? 0.45 : 1}
|
||||
onPress={() => {
|
||||
if (action.disabled) {
|
||||
return;
|
||||
}
|
||||
action.onPress?.();
|
||||
close();
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user