devhatt / octopost

Octopost is an open source service from Devhat that was created to guide new developers for free
https://devhatt.github.io/octopost/
MIT License
65 stars 45 forks source link

Adicionar o componente Button com ícone de favoritar ao componente AccountCard #498

Closed JpBurgarelli closed 1 month ago

JpBurgarelli commented 2 months ago

Describe the feature

É necessário adicionar ao componente chamado AccountCard o componenente Button com a imagem de uma estrela onde atualmente está escrito "star". Este ícone representa a funcionalidade de favoritar. Para realizar essa adição, você utilizará o componente chamado Button e o importará no AccountCard.

Implementation Details


import Button from 'caminho do botão';

function AccountCard() {
  const favoriteIcon= <img src="caminho_da_imagem" alt="favorite Icon" />;

  return (
    <div>
      <Button 
              variant="text" 
              color="primary" 
              icon={favoriteIcon} 
             //outras props, se necessário
       />
    </div>
  );
}

export default AccountCard;

Visual Concepts

image image

Alecell commented 2 months ago

Obrigado por abrir a issue

Verifique os nossos guidelines: