Skip to content

Commit

Permalink
Removing more unnecesary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino committed Jan 10, 2025
1 parent 3e93d3c commit 1e3d156
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions webapp/src/components/rhs/rhs_post_update_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
// See LICENSE.txt for license information.

import React from 'react';
import {FormattedMessage, useIntl} from 'react-intl';
import {FormattedMessage} from 'react-intl';
import styled, {css} from 'styled-components';

import {DestructiveButton, PrimaryButton, TertiaryButton} from 'src/components/assets/buttons';

import {useAIAvailable} from 'src/ai_integration';

interface Props {
collapsed: boolean;
isDue: boolean;
Expand All @@ -28,29 +26,20 @@ const RHSPostUpdateButton = (props: Props) => {
}

return (
<ButtonsContainer>
<ButtonComponent
collapsed={props.collapsed}
disabled={props.disabled}
onClick={props.onClick}
>
<FormattedMessage defaultMessage='Post update'/>
</ButtonComponent>
</ButtonsContainer>
<ButtonComponent
collapsed={props.collapsed}
disabled={props.disabled}
onClick={props.onClick}
>
<FormattedMessage defaultMessage='Post update'/>
</ButtonComponent>
);
};

interface CollapsedProps {
collapsed: boolean;
}

const ButtonsContainer = styled.div`
flex-grow: 1;
display: flex;
flex-direction: row;
gap: 2px;
`;

const PostUpdateButtonCommon = css<CollapsedProps>`
justify-content: center;
flex: 1;
Expand Down

0 comments on commit 1e3d156

Please sign in to comment.