Skip to content

Commit

Permalink
Some unused code cleanup (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller authored May 21, 2024
1 parent bc89035 commit b28321d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 264 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/dot_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const iconSplitStyling = css`
gap: 8px;
`;

export const DropdownMenuItem = (props: { children: React.ReactNode, onClick?: () => void, className?: string, disabled?: boolean, disabledAltText?: string }) => {
export const DropdownMenuItem = (props: { children: React.ReactNode, onClick?: () => void, className?: string}) => {
return (
<DropdownMenuItemStyled
href='#'
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See LICENSE.txt for license information.

import React, {ComponentProps, cloneElement, useState} from 'react';
import styled, {css} from 'styled-components';
import styled from 'styled-components';

import {
FloatingFocusManager,
Expand Down
1 change: 0 additions & 1 deletion webapp/src/components/post_text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import styled, {keyframes, css} from 'styled-components';
import {GlobalState} from '@mattermost/types/store';
import {Channel} from '@mattermost/types/channels';
import {Team} from '@mattermost/types/teams';
import {Post} from '@mattermost/types/posts';

export type ChannelNamesMap = {
[name: string]: {
Expand Down
14 changes: 1 addition & 13 deletions webapp/src/components/system_console/config.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
import React, {useCallback, useEffect, useState} from 'react';
import React, {useEffect, useState} from 'react';
import styled from 'styled-components';

import {PlusIcon} from '@mattermost/compass-icons/components';

import {TertiaryButton} from '../assets/buttons';

import {useIsMultiLLMLicensed} from '@/license';

import {Pill} from '../pill';

import {setUserProfilePictureByUsername} from '@/client';

import {ServiceData} from './service';
import ServiceForm from './service_form';
import EnterpriseChip from './enterprise_chip';
import Panel, {PanelFooterText} from './panel';
import Bots, {firstNewBot} from './bots';
import {LLMBotConfig} from './bot';
Expand Down Expand Up @@ -61,12 +55,6 @@ const MessageContainer = styled.div`
border: 1px solid rgba(63, 67, 80, 0.08);
`;

const PlusAIServiceIcon = styled(PlusIcon)`
width: 18px;
height: 18px;
margin-right: 8px;
`;

const ConfigContainer = styled.div`
display: flex;
flex-direction: column;
Expand Down
248 changes: 0 additions & 248 deletions webapp/src/components/system_console/service_form.tsx

This file was deleted.

0 comments on commit b28321d

Please sign in to comment.