Skip to content

Comments

Add tooltip component, add tooltip to logout button#189

Merged
IAmKio merged 7 commits intopillarwallet:stagingfrom
zbcoding:staging
Oct 11, 2024
Merged

Add tooltip component, add tooltip to logout button#189
IAmKio merged 7 commits intopillarwallet:stagingfrom
zbcoding:staging

Conversation

@zbcoding
Copy link

@zbcoding zbcoding commented Oct 5, 2024

Description

Add a tooltip component using main theme color. Wrap a component tag with the tooltip and the tooltip will show when user hovers over an element for a while (default: 1 second). Added tooltip to logout icon button.

Change TopBarIcon id="acount-logout" to TopBarIcon id="account-logout"

Added where to login to readme.

How Has This Been Tested?

UI element tested locally

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@IAmKio IAmKio requested review from IAmKio and RanaBug October 7, 2024 22:18
README.md Outdated
2. We have included a `.env.example` file - copy ALL these values to a `.env` file in the project root. This will ensure that you can run PillarX with no issues.

3. Run `npm start` at the root. This will run PillarX locally on your machine and launch the website in your default browser.
3. Run `npm start` at the root. This will run PillarX locally on your machine and launch the website in your default browser. Login to the wallet at http://localhost:3000/login and enter your email address - Privy will send that email address a login code.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are different ways to login, so I would suggest to change this added sentence to something like: "To access the login page, add to the url "/login". In that way, we leave the user choose how they want to login.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edited readme

import styled from 'styled-components';
import Tippy from '@tippyjs/react';

export const Tooltip = styled(Tippy)`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep consistent with the rest of the code, and since this component does not accept any params, could you add it directly to AccountModal.tsx, where it is being used, at the end of the file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the style tippy component to the end of the AccountModal file and deleted the Tooltip.tsx file

@RanaBug
Copy link
Collaborator

RanaBug commented Oct 8, 2024

Thank you very much for the suggestion of adding a tooltip component, that's great! I've added a couple of comments for you to review.

@zbcoding
Copy link
Author

zbcoding commented Oct 8, 2024

PR updated, 3 files are now changed

@IAmKio IAmKio merged commit 2e4c141 into pillarwallet:staging Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants