mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
ec76057c5e
* Testing playwright for Desktop automation
* add more data-testid field
* remove commited test-results
* test: skip group upkeep for now
* test: mention test create group instead of restoring from seed
* test: run on testnet
* fix: revert messagebanner unread count changes
from commit 8107d75e89
Co-authored-by: Emily <emily@oxen.io>
29 lines
782 B
TypeScript
29 lines
782 B
TypeScript
import React from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
import styled from 'styled-components';
|
|
import { getShowScrollButton } from '../state/selectors/conversations';
|
|
|
|
import { SessionIconButton } from './icon';
|
|
|
|
const SessionScrollButtonDiv = styled.div`
|
|
position: fixed;
|
|
z-index: 2;
|
|
right: 60px;
|
|
animation: fadein var(--default-duration);
|
|
`;
|
|
|
|
export const SessionScrollButton = (props: { onClickScrollBottom: () => void }) => {
|
|
const show = useSelector(getShowScrollButton);
|
|
|
|
return (
|
|
<SessionScrollButtonDiv>
|
|
<SessionIconButton
|
|
iconType="chevron"
|
|
iconSize={'huge'}
|
|
isHidden={!show}
|
|
onClick={props.onClickScrollBottom}
|
|
dataTestId="scroll-to-bottom-button"
|
|
/>
|
|
</SessionScrollButtonDiv>
|
|
);
|
|
};
|