mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Add rest of the props to DownloadButton component
This commit is contained in:
		@@ -21,9 +21,14 @@ DownloadButton.defaultProps = {
 | 
			
		||||
    className: "btn-primary",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export function DownloadButton({ href, className, children }) {
 | 
			
		||||
export function DownloadButton({ href, className, children, ...props }) {
 | 
			
		||||
    return (
 | 
			
		||||
        <a href={href} className={`btn ${className}`.trim()} download>
 | 
			
		||||
        <a
 | 
			
		||||
            href={href}
 | 
			
		||||
            className={`btn ${className}`.trim()}
 | 
			
		||||
            {...props}
 | 
			
		||||
            download
 | 
			
		||||
        >
 | 
			
		||||
            {children}
 | 
			
		||||
        </a>
 | 
			
		||||
    );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user