Skip to content

Commit

Permalink
[MM-62652] Replace Button from react-bootstrap with button (#3295)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbinnie authored Jan 28, 2025
1 parent 8f15156 commit c3657c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See LICENSE.txt for license information.

import React, {useState} from 'react';
import {Button} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';

import LoadingWrapper from 'renderer/components/SaveButton/LoadingWrapper';
Expand Down Expand Up @@ -47,10 +46,9 @@ const UpdateAvailable = ({item, appName}: OwnProps) => {
}}
/>
</div>
<Button
<button
id='downloadUpdateButton'
className='primary-button DownloadsDropdown__Update__Details__Button'
variant='primary'
onClick={onButtonClick}
disabled={isProcessing}
>
Expand All @@ -68,7 +66,7 @@ const UpdateAvailable = ({item, appName}: OwnProps) => {
defaultMessage='Download Update'
/>
</LoadingWrapper>
</Button>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import classNames from 'classnames';
import React from 'react';
import {Button} from 'react-bootstrap';
import {FormattedMessage, useIntl} from 'react-intl';

import type {DownloadedItem} from 'types/downloads';
Expand Down Expand Up @@ -39,7 +38,7 @@ const UpdateAvailable = ({item, appName}: OwnProps) => {
>
<FileSizeAndStatus item={item}/>
</div>
<Button
<button
id='restartAndUpdateButton'
className='primary-button'
onClick={onButtonClick}
Expand All @@ -48,7 +47,7 @@ const UpdateAvailable = ({item, appName}: OwnProps) => {
id='renderer.downloadsDropdown.Update.RestartAndUpdate'
defaultMessage={'Restart & update'}
/>
</Button>
</button>
</div>
</div>
</div>
Expand Down

0 comments on commit c3657c6

Please sign in to comment.