refactor(web): camera view + bugfixes

This commit is contained in:
Paul Armstrong
2021-02-04 15:19:47 -08:00
committed by Blake Blackshear
parent b422a83b57
commit 96f87caff0
15 changed files with 156 additions and 63 deletions

View File

@@ -49,10 +49,12 @@ export function Destination({ className = '', href, text, ...other }) {
: 'class']: 'block p-2 text-sm font-semibold text-gray-900 rounded hover:bg-blue-500 dark:text-gray-200 hover:text-white dark:hover:text-white focus:outline-none ring-opacity-50 focus:ring-2 ring-blue-300',
};
const El = external ? 'a' : Link;
return (
<Link activeClassName="bg-blue-500 bg-opacity-50 text-white" {...styleProps} href={href} {...props} {...other}>
<El activeClassName="bg-blue-500 bg-opacity-50 text-white" {...styleProps} href={href} {...props} {...other}>
<div onClick={handleDismiss}>{text}</div>
</Link>
</El>
);
}