Skip to content

Commit

Permalink
[Obs AI Assistant] Update text variables and remove unnecessary styles
Browse files Browse the repository at this point in the history
  • Loading branch information
viduni94 committed Nov 20, 2024
1 parent 1b3915f commit 7beecbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React from 'react';
import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, EuiPanel, useEuiTheme } from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, EuiPanel } from '@elastic/eui';
import { css } from '@emotion/css';
import { Feedback, FeedbackButtons } from '../buttons/feedback_buttons';
import { StopGeneratingButton } from '../buttons/stop_generating_button';
Expand Down Expand Up @@ -34,8 +34,6 @@ export function ChatItemControls({
onRegenerateClick: () => void;
onStopGeneratingClick: () => void;
}) {
const { euiTheme } = useEuiTheme();

const displayFeedback = !error && canGiveFeedback;
const displayRegenerate = !loading && canRegenerate;

Expand Down Expand Up @@ -64,7 +62,7 @@ export function ChatItemControls({

return controls ? (
<>
<EuiHorizontalRule margin="none" color={euiTheme.colors.lightestShade} />
<EuiHorizontalRule margin="none" />
<EuiPanel hasShadow={false} paddingSize="s" className={containerClassName}>
{controls}
</EuiPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const AdditionalOptionsConnectorFields: React.FC<AdditionalOptionsConnect
<div
css={css`
font-size: ${xsFontSize};
color: ${euiTheme.colors.subduedText};
color: ${euiTheme.colors.textSubdued};
`}
>
<FormattedMessage
Expand Down Expand Up @@ -255,7 +255,7 @@ export const AdditionalOptionsConnectorFields: React.FC<AdditionalOptionsConnect
<div
css={css`
font-size: ${xsFontSize};
color: ${euiTheme.colors.subduedText};
color: ${euiTheme.colors.textSubdued};
`}
>
<FormattedMessage
Expand Down Expand Up @@ -289,7 +289,7 @@ export const AdditionalOptionsConnectorFields: React.FC<AdditionalOptionsConnect
<div
css={css`
font-size: ${xsFontSize};
color: ${euiTheme.colors.subduedText};
color: ${euiTheme.colors.textSubdued};
`}
>
<FormattedMessage
Expand Down

0 comments on commit 7beecbf

Please sign in to comment.