Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated button after rsbuild #3307

Open
wants to merge 2 commits into
base: feat/migrate-to-rsbuild
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions src/components/Button/CozyHomeLink.jsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/Button/CozyHomeLinkIcon.jsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Button/index.jsx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default as MoreButton } from './MoreButton'
export { default as CozyHomeLink } from './CozyHomeLink'
6 changes: 3 additions & 3 deletions src/modules/filelist/LoadMore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'

import Buttons from 'cozy-ui/transpiled/react/Buttons'
import Spinner from 'cozy-ui/transpiled/react/Spinner'
import Button from 'cozy-ui/transpiled/react/deprecated/Button'
import { TableRow } from 'cozy-ui/transpiled/react/deprecated/Table'
import { translate } from 'cozy-ui/transpiled/react/providers/I18n'

Expand All @@ -13,8 +13,8 @@ const LoadMore = ({ onClick, isLoading, text }) => (
<TableRow
className={cx(styles['fil-content-row'], styles['fil-content-row--center'])}
>
<Button
theme="secondary"
<Buttons
variant="secondary"
onClick={onClick}
label={isLoading ? <Spinner noMargin /> : text}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/modules/viewer/NoViewerButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import React from 'react'

import { useClient } from 'cozy-client'
import { useVaultClient } from 'cozy-keys-lib'
import Button from 'cozy-ui/transpiled/react/deprecated/Button'
import Buttons from 'cozy-ui/transpiled/react/Buttons'

import { downloadFile } from './helpers'

const NoViewerButton = ({ file, t }) => {
const client = useClient()
const vaultClient = useVaultClient()
return (
<Button
<Buttons
onClick={() => downloadFile(client, file, { vaultClient })}
label={t('Viewer.noviewer.download')}
/>
Expand Down
Loading