empty torrent list folder color chenged

This commit is contained in:
Daniel Shleifman
2022-06-26 14:09:03 +03:00
parent b6527a04a3
commit 1b9203f8ea
2 changed files with 13 additions and 3 deletions

View File

@@ -6,6 +6,11 @@ import NoServerConnection from './NoServerConnection'
import AddFirstTorrent from './AddFirstTorrent'
export default function TorrentList({ isOffline, isLoading, torrents }) {
return (
<CenteredGrid>
<AddFirstTorrent />
</CenteredGrid>
)
if (isLoading || isOffline || !torrents.length) {
return (
<CenteredGrid>

View File

@@ -1,7 +1,12 @@
import styled, { css } from 'styled-components'
export default styled.div`
${({ isButton }) => css`
${({
isButton,
theme: {
addDialog: { notificationSuccessBGColor, languageSwitchBGColor },
},
}) => css`
display: grid;
place-items: center;
padding: 20px 40px;
@@ -9,12 +14,12 @@ export default styled.div`
${isButton &&
css`
background: #88cdaa;
background: ${notificationSuccessBGColor};
transition: 0.2s;
cursor: pointer;
:hover {
background: #74c39c;
background: ${languageSwitchBGColor};
}
`}