Skip to content

Commit

Permalink
feat: add helper message
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Sep 23, 2024
1 parent 9844571 commit 35c7218
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Spinner } from '../Spinner/Spinner';
import {
ConnectorContent,
ConnectorDescription,
ConnectorHelper,
ConnectorImage,
ConnectorLinkButton,
ConnectorTitle,
Expand Down Expand Up @@ -71,6 +72,12 @@ export function Connector({ className, connector, theme }: ConnectorProps) {
{loading && <Spinner size={26} color="var(--fuel-loader-background)" />}
{!loading && (dialogLabels.buttonLabel || actionText)}
</ConnectorLinkButton>
{dialogState === DialogState.CONNECTING && (
<ConnectorHelper>
If you have installed and is not detected <br /> try to refresh the
page.
</ConnectorHelper>
)}
</div>
);
}
10 changes: 10 additions & 0 deletions packages/react/src/ui/Connect/components/Connector/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ export const ConnectorContent = styled.div`
display: flex;
flex-direction: column;
`;

export const ConnectorHelper = styled.p`
font-size: 0.8em;
font-weight: 400;
text-align: center;
margin: 0.6em 1.2em;
line-height: 1.2em;
padding: 0 2em;
opacity: 0.5;
`;

0 comments on commit 35c7218

Please sign in to comment.