diff --git a/src/ui/component/channelThumbnail/view.jsx b/src/ui/component/channelThumbnail/view.jsx index a22c24613..d52df8292 100644 --- a/src/ui/component/channelThumbnail/view.jsx +++ b/src/ui/component/channelThumbnail/view.jsx @@ -12,29 +12,15 @@ type Props = { function ChannelThumbnail(props: Props) { const { thumbnail, uri } = props; - function getColorClass() { - // Generate a random color class based on the first letter of the channel name - const { channelName } = parseURI(uri); - const initializer = channelName.charCodeAt(0) - 65; // will be between 0 and 57 - - let thumbnailColorClass = `channel-thumbnail__default--`; - - switch (true) { - case initializer < 15: - return (thumbnailColorClass += '1'); - case initializer < 30: - return (thumbnailColorClass += '2'); - case initializer < 45: - return (thumbnailColorClass += '3'); - default: - return (thumbnailColorClass += '4'); - } - } + // Generate a random color class based on the first letter of the channel name + const { channelName } = parseURI(uri); + const initializer = channelName.charCodeAt(0) - 65; // will be between 0 and 57 + const className = `channel-thumbnail__default--${initializer % 4}`; return (
{!thumbnail && } diff --git a/src/ui/page/backup/view.jsx b/src/ui/page/backup/view.jsx deleted file mode 100644 index 4ee11394a..000000000 --- a/src/ui/page/backup/view.jsx +++ /dev/null @@ -1,73 +0,0 @@ -// @flow -import * as React from 'react'; -import Button from 'component/button'; -import Page from 'component/page'; - -type Props = { - daemonSettings: { - wallet_dir: ?string, - }, -}; - -class BackupPage extends React.PureComponent { - render() { - const { daemonSettings } = this.props; - const { wallet_dir: lbryumWalletDir } = daemonSettings; - - const noDaemonSettings = Object.keys(daemonSettings).length === 0; - - return ( - -
- {noDaemonSettings ? ( -
-

{__('Failed to load settings.')}

-
- ) : ( - -
-

{__('Backup Your LBRY Credits')}

- -

- {__( - 'Your LBRY credits are controllable by you and only you, via wallet file(s) stored locally on your computer.' - )} -

-
- -
-

- {__( - 'Currently, there is no automatic wallet backup. If you lose access to these files, you will lose your credits permanently.' - )} -

-

- {__( - 'However, it is fairly easy to back up manually. To backup your wallet, make a copy of the folder listed below:' - )} -

-

{lbryumWalletDir}

-

- {__( - 'Access to these files are equivalent to having access to your credits. Keep any copies you make of your wallet in a secure place.' - )} -

-

- For more details on backing up and best practices,{' '} -

-
- )} -
-
- ); - } -} - -export default BackupPage; diff --git a/src/ui/scss/component/_card.scss b/src/ui/scss/component/_card.scss index 7c8e33f09..ab177228c 100644 --- a/src/ui/scss/component/_card.scss +++ b/src/ui/scss/component/_card.scss @@ -1,6 +1,5 @@ .card { background-color: $lbry-white; - border: 1px solid $lbry-gray-1; margin-bottom: var(--spacing-vertical-xlarge); position: relative; border-radius: var(--card-radius); @@ -8,7 +7,6 @@ html[data-mode='dark'] & { background-color: rgba($lbry-white, 0.1); - border-color: rgba($lbry-white, 0.1); box-shadow: var(--card-box-shadow) darken($lbry-gray-1, 80%); } } diff --git a/src/ui/scss/component/_channel.scss b/src/ui/scss/component/_channel.scss index a67cf3235..fcbadeaf1 100644 --- a/src/ui/scss/component/_channel.scss +++ b/src/ui/scss/component/_channel.scss @@ -52,16 +52,16 @@ $metadata-z-index: 1; border-radius: var(--card-radius); } -.channel-thumbnail__default--1 { +.channel-thumbnail__default--0 { background-color: $lbry-indigo-3; } -.channel-thumbnail__default--2 { +.channel-thumbnail__default--1 { background-color: $lbry-orange-2; } -.channel-thumbnail__default--3 { +.channel-thumbnail__default--2 { background-color: $lbry-blue-3; } -.channel-thumbnail__default--4 { +.channel-thumbnail__default--3 { background-color: $lbry-red-1; }