Skip to content

Commit

Permalink
fix: Use Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Crash-- committed Jul 3, 2023
1 parent ec3c0cd commit 78bcd41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/HeroHeader/LogoutModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { Button } from 'cozy-ui/transpiled/react/Button'
import Button from 'cozy-ui/transpiled/react/Buttons'
import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
import { useI18n } from 'cozy-ui/transpiled/react/I18n'
import CozyTheme from 'cozy-ui/transpiled/react/CozyTheme'
Expand All @@ -18,12 +18,12 @@ export const LogoutDialog = (props: {
actions={
<>
<Button
theme="secondary"
variant="secondary"
label={t('logout_dialog.cancel')}
onClick={props.onCancel}
/>
<Button
theme="primary"
variant="primary"
label={t('logout_dialog.confirm')}
onClick={props.onConfirm}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/cozy-ui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ declare module 'cozy-ui/transpiled/react/I18n' {
export const useI18n: () => { t: (key: string) => string }
}

declare module 'cozy-ui/transpiled/react/Button' {
export const Button: (props: Record<string, unknown>) => JSX.Element
declare module 'cozy-ui/transpiled/react/Buttons' {
export default function Button(props: Record<string, unknown>): JSX.Element
}

declare module 'cozy-ui/transpiled/react/Icons/Help' {
Expand Down

0 comments on commit 78bcd41

Please sign in to comment.