session-desktop/ts/components/conversation/SessionFileDropzone.tsx
Audric Ackermann 28c7445dce
refactor most of the components to outside of their Session folder (#2072)
* refactor most of the components to outside of their Session folder

* finish moving overlay and memberListItem to react hook

* fix bug with kicked member len >2 not being displayed

also sort admins first in UpdateGroupMembers dialog

* fix admin leaving text of groupNotification

* add a useFocusMount hook to focus input fields on mount

* make click avatar convo item open only user dialog

* cleanup config default.json

* make sure to use convoController to build sync message

* disable showing pubkey on opengroups

* add a pause on audio playback

Fixes #2079
2021-12-14 15:15:12 +11:00

37 lines
892 B
TypeScript

import React from 'react';
import styled from 'styled-components';
import { Flex } from '../basic/Flex';
import { SessionIcon } from '../icon';
const DropZoneContainer = styled.div`
display: inline-block;
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
`;
const DropZoneWithBorder = styled.div`
border: dashed 4px var(--color-accent);
background-color: var(--color-clickable-hovered);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 20;
opacity: 0.5;
pointer-events: none;
`;
export const SessionFileDropzone = () => {
return (
<DropZoneContainer>
<DropZoneWithBorder>
<Flex container={true} justifyContent="space-around" height="100%" alignItems="center">
<SessionIcon iconSize={'max'} iconType="circlePlus" />
</Flex>
</DropZoneWithBorder>
</DropZoneContainer>
);
};