<commit_before>// @flow
import * as PAGES from 'constants/pages';
import React from 'react';
import CreditAmount from 'component/common/credit-amount';
import Button from 'component/button';
import Card from 'component/common/card';
import I18nMessage from 'component/i18nMessage';

type Props = {
  balance: number,
  totalRewardValue: number,
};

function RewardAuthIntro(props: Props) {
  const { totalRewardValue } = props;
  const totalRewardRounded = Math.floor(totalRewardValue / 10) * 10;

  return (
    <Card
      title={__('Sign In to lbry.tv to Earn Rewards')}
      subtitle={
        <I18nMessage
          tokens={{
            credit_amount: <CreditAmount inheritStyle amount={totalRewardRounded} />,
          }}
        >
          A lbry.tv account allows you to earn more than %credit_amount% in rewards, backup your data, and get content
          and security updates.
        </I18nMessage>
      }
      actions={<Button button="primary" requiresAuth label={__('Unlock Rewards')} />}
    />
  );
}

export default RewardAuthIntro;<commit_msg>fix reward link<commit_after>// @flow
import * as PAGES from 'constants/pages';
import React from 'react';
import CreditAmount from 'component/common/credit-amount';
import Button from 'component/button';
import Card from 'component/common/card';
import I18nMessage from 'component/i18nMessage';

type Props = {
  balance: number,
  totalRewardValue: number,
};

function RewardAuthIntro(props: Props) {
  const { totalRewardValue } = props;
  const totalRewardRounded = Math.floor(totalRewardValue / 10) * 10;

  return (
    <Card
      title={__('Sign In to lbry.tv to Earn Rewards')}
      subtitle={
        <I18nMessage
          tokens={{
            credit_amount: <CreditAmount inheritStyle amount={totalRewardRounded} />,
          }}
        >
          A lbry.tv account allows you to earn more than %credit_amount% in rewards, backup your data, and get content
          and security updates.
        </I18nMessage>
      }
      actions={
        <Button
          button="primary"
          navigate={`/$/${PAGES.AUTH}?redirect=/$/${PAGES.REWARDS}`}
          label={__('Unlock Rewards')}
        />
      }
    />
  );
}

export default RewardAuthIntro;
{'fraction_non_alphanumeric': 0.11225402504472272, 'fraction_numerical': 0.01073345259391771, 'mean_word_length': 2.945326278659612, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '656271', 'n_tokens_mistral': 690, 'n_tokens_neox': 664, 'n_words': 182}