mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Fix submit button type.
This commit is contained in:
		@@ -5,7 +5,7 @@ exports[`<SubmitButton/> Render load 1`] = `
 | 
				
			|||||||
  <button
 | 
					  <button
 | 
				
			||||||
    class="btn btn-primary  offset-lg-8 col-lg-3 col-sm-12"
 | 
					    class="btn btn-primary  offset-lg-8 col-lg-3 col-sm-12"
 | 
				
			||||||
    disabled=""
 | 
					    disabled=""
 | 
				
			||||||
    type="button"
 | 
					    type="submit"
 | 
				
			||||||
  >
 | 
					  >
 | 
				
			||||||
    <span
 | 
					    <span
 | 
				
			||||||
      aria-hidden="true"
 | 
					      aria-hidden="true"
 | 
				
			||||||
@@ -24,7 +24,7 @@ exports[`<SubmitButton/> Render ready 1`] = `
 | 
				
			|||||||
<div>
 | 
					<div>
 | 
				
			||||||
  <button
 | 
					  <button
 | 
				
			||||||
    class="btn btn-primary  offset-lg-8 col-lg-3 col-sm-12"
 | 
					    class="btn btn-primary  offset-lg-8 col-lg-3 col-sm-12"
 | 
				
			||||||
    type="button"
 | 
					    type="submit"
 | 
				
			||||||
  >
 | 
					  >
 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
@@ -38,7 +38,7 @@ exports[`<SubmitButton/> Render saving 1`] = `
 | 
				
			|||||||
  <button
 | 
					  <button
 | 
				
			||||||
    class="btn btn-primary  offset-lg-8 col-lg-3 col-sm-12"
 | 
					    class="btn btn-primary  offset-lg-8 col-lg-3 col-sm-12"
 | 
				
			||||||
    disabled=""
 | 
					    disabled=""
 | 
				
			||||||
    type="button"
 | 
					    type="submit"
 | 
				
			||||||
  >
 | 
					  >
 | 
				
			||||||
    <span
 | 
					    <span
 | 
				
			||||||
      aria-hidden="true"
 | 
					      aria-hidden="true"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,6 +40,7 @@ export function SubmitButton({ disabled, state, ...props }) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
        <Button
 | 
					        <Button
 | 
				
			||||||
 | 
					            type="submit"
 | 
				
			||||||
            loading={loadingSubmitButton}
 | 
					            loading={loadingSubmitButton}
 | 
				
			||||||
            disabled={disableSubmitButton}
 | 
					            disabled={disableSubmitButton}
 | 
				
			||||||
            forisFormSize
 | 
					            forisFormSize
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user