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

fix: update comp #206

Merged
merged 1 commit into from
Feb 12, 2024
Merged
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
16 changes: 4 additions & 12 deletions src/components/Chatbox/Date.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import { FC } from 'react';

import { styled } from '@mui/material';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';

const DateContainer = styled(Box)(({ theme }) => ({
padding: theme.spacing(0.5, 1, 1),
}));
import { Box, Typography } from '@mui/material';

type Props = {
date: string;
};

const Date: FC<Props> = ({ date }) => {
const Date = ({ date }: Props): JSX.Element => {
return (
<DateContainer p={1} alignSelf="center">
<Box p={1} alignSelf="center">
<Typography variant="subtitle2">{date}</Typography>
</DateContainer>
</Box>
);
};

Expand Down
14 changes: 8 additions & 6 deletions src/components/Chatbox/EditBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Close, Edit } from '@mui/icons-material';
import { styled } from '@mui/material';
import Box from '@mui/material/Box';
import Divider from '@mui/material/Divider';
import IconButton from '@mui/material/IconButton';
import SvgIcon from '@mui/material/SvgIcon';
import Typography from '@mui/material/Typography';
import {
Box,
Divider,
IconButton,
SvgIcon,
Typography,
styled,
} from '@mui/material';

import { CHATBOX } from '@graasp/translations';

Expand Down
5 changes: 1 addition & 4 deletions src/components/Chatbox/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { FC } from 'react';

import ChatIcon from '@mui/icons-material/Chat';
import { styled } from '@mui/material';
import AppBar from '@mui/material/AppBar';
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import { AppBar, Toolbar, Typography, styled } from '@mui/material';

import { CHATBOX } from '@graasp/translations';

Expand Down
3 changes: 1 addition & 2 deletions src/components/Chatbox/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import {
} from 'react-mentions';

import SendIcon from '@mui/icons-material/Send';
import { Box, Typography, styled, useTheme } from '@mui/material';
import IconButton from '@mui/material/IconButton';
import { Box, IconButton, Typography, styled, useTheme } from '@mui/material';

import { MessageBodyType } from '@graasp/sdk';
import { CHATBOX } from '@graasp/translations';
Expand Down
4 changes: 1 addition & 3 deletions src/components/Chatbox/Message.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { FC } from 'react';

import { styled } from '@mui/material';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import { Box, Typography, styled } from '@mui/material';
import grey from '@mui/material/colors/grey';

import { ChatMessage, CompleteMember, Member } from '@graasp/sdk';
Expand Down
3 changes: 1 addition & 2 deletions src/components/Chatbox/Messages.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { FC, Fragment, useEffect, useRef } from 'react';

import { styled } from '@mui/material';
import Box from '@mui/material/Box';
import { Box, styled } from '@mui/material';

import { ChatMessage, CompleteMember } from '@graasp/sdk';

Expand Down
Loading