Skip to content

Commit

Permalink
fix(web): fix-sign-in-button-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed May 28, 2024
1 parent 1bcfd66 commit b216109
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/pages/Resolver/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const ConnectWalletContainer = styled.div`
color: ${({ theme }) => theme.primaryText};
`;

const StyledEnsureAuth = styled(EnsureAuth)`
align-self: center;
`;

const MiddleContentContainer = styled.div`
display: flex;
justify-content: center;
Expand Down Expand Up @@ -72,7 +76,7 @@ const DisputeResolver: React.FC = () => {
<Container>
{isConnected && !isPreviewPage ? <StyledLabel>Start a case</StyledLabel> : null}
{isConnected ? (
<EnsureAuth>
<StyledEnsureAuth>
<MiddleContentContainer>
{isConnected && !isPreviewPage ? <Timeline /> : null}
<Routes>
Expand All @@ -88,7 +92,7 @@ const DisputeResolver: React.FC = () => {
<Route path="/preview/*" element={<Preview />} />
</Routes>
</MiddleContentContainer>
</EnsureAuth>
</StyledEnsureAuth>
) : (
<ConnectWalletContainer>
To create a new dispute, connect first
Expand Down

0 comments on commit b216109

Please sign in to comment.