Migrate AvailabilityEditor

This commit is contained in:
Ben Grant 2023-05-29 01:06:57 +10:00
parent 1a6d34ac59
commit 5abba62c66
11 changed files with 277 additions and 219 deletions

View file

@ -24,7 +24,7 @@ const Copyable = ({ children, className, ...props }: CopyableProps) => {
})
.catch(e => console.error('Failed to copy', e))
}
title={navigator.clipboard ? t<string>('nav.title') : undefined}
title={'clipboard' in navigator ? t<string>('nav.title') : undefined}
className={makeClass(className, 'clipboard' in navigator && styles.copyable)}
{...props}
>{copied ?? children}</p>