Fixed TS compilation in tests

This commit is contained in:
Alejandro Celaya
2020-12-08 19:31:09 +01:00
parent 60282281a3
commit 3e6aee47e5
4 changed files with 6 additions and 2 deletions

View File

@@ -11,11 +11,11 @@ import './CreateShortUrlResult.scss';
export interface CreateShortUrlResultProps extends ShortUrlCreation {
resetCreateShortUrl: () => void;
canBeClosed: boolean;
canBeClosed?: boolean;
}
const CreateShortUrlResult = (useStateFlagTimeout: StateFlagTimeout) => (
{ error, result, resetCreateShortUrl, canBeClosed }: CreateShortUrlResultProps,
{ error, result, resetCreateShortUrl, canBeClosed = false }: CreateShortUrlResultProps,
) => {
const [ showCopyTooltip, setShowCopyTooltip ] = useStateFlagTimeout();