Skip to content

Commit

Permalink
fix(slash): update use button with new props
Browse files Browse the repository at this point in the history
  • Loading branch information
pplancq committed Jan 20, 2025
1 parent 218a770 commit 16d1064
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions slash/react/src/Form/File/File.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ const File = ({
<div>{placeholder}</div>
</div>
<Button
type="button"
className="af-btn"
classModifier="file hasIconLeft"
className="af-btn--file"
leftIcon={<i className={`glyphicon glyphicon-${icon}`} />}
onClick={open}
disabled={disabled}
>
<i className={`glyphicon glyphicon-${icon}`} /> {label}
{label}
</Button>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ exports[`<File.File> > renders File.File correctly 1`] = `
</div>
</div>
<button
class="af-btn af-btn--file af-btn--hasIconLeft"
class="af-btn af-btn--file"
type="button"
>
<i
class="glyphicon glyphicon-open"
/>
File *
File *
</button>
</div>
</DocumentFragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ exports[`<FileInput> > renders FileInput correctly 1`] = `
</div>
</div>
<button
class="af-btn af-btn--file af-btn--hasIconLeft"
class="af-btn af-btn--file"
type="button"
>
<i
class="glyphicon glyphicon-open"
/>
Parcourir
Parcourir
</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion slash/react/src/ModalAgent/BooleanModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const BooleanModal = forwardRef<HTMLDialogElement, BooleanModalProps>(
/>
<Body>{children}</Body>
<Footer>
<Button classModifier="reverse" onClick={onCancel}>
<Button variant="secondary" onClick={onCancel}>
{cancelTitle}
</Button>
<Button onClick={onSubmit}>{submitTitle}</Button>
Expand Down

0 comments on commit 16d1064

Please sign in to comment.