diff --git a/www/src/components/app/AppMetadataPanel.tsx b/www/src/components/app/AppMetadataPanel.tsx index 6acf88e90..25f13dee6 100644 --- a/www/src/components/app/AppMetadataPanel.tsx +++ b/www/src/components/app/AppMetadataPanel.tsx @@ -27,8 +27,6 @@ export default function AppMetadataPanel({ return ( - + ) } diff --git a/www/src/components/users/EmailConfirmation.tsx b/www/src/components/users/EmailConfirmation.tsx index df340e325..ef28763fe 100644 --- a/www/src/components/users/EmailConfirmation.tsx +++ b/www/src/components/users/EmailConfirmation.tsx @@ -1,25 +1,19 @@ -import { useCallback, useContext, useEffect, useState } from 'react' import { useMutation } from '@apollo/client' -import { Box, Layer, Text } from 'grommet' -import { - CloseIcon, - ErrorIcon, - IconFrame, - ReloadIcon, -} from '@pluralsh/design-system' -import moment from 'moment' +import { Button, Flex, SendMessageIcon, Toast } from '@pluralsh/design-system' +import { Box } from 'grommet' +import { useCallback, useContext, useEffect, useState } from 'react' import { useParams } from 'react-router-dom' import { useTheme } from 'styled-components' -import { useIsCurrentlyOnboarding } from '../shell/hooks/useOnboarded' import CurrentUserContext from '../../contexts/CurrentUserContext' +import { useIsCurrentlyOnboarding } from '../shell/hooks/useOnboarded' import { Alert, AlertStatus, GqlError } from '../utils/Alert' import LoadingIndicator from '../utils/LoadingIndicator' +import { LoginPortal } from './LoginPortal' import { CREATE_RESET_TOKEN, REALIZE_TOKEN } from './queries' import { ResetTokenType } from './types' -import { LoginPortal } from './LoginPortal' export function EmailConfirmed() { const { id } = useParams() @@ -77,74 +71,31 @@ export function VerifyEmailConfirmed() { return null return ( - - - + Please confirm your email address to continue using your Plural + account. + + + + ) } diff --git a/www/src/components/utils/InfoPanel.tsx b/www/src/components/utils/InfoPanel.tsx index 8f0cce24d..89a77c64d 100644 --- a/www/src/components/utils/InfoPanel.tsx +++ b/www/src/components/utils/InfoPanel.tsx @@ -1,13 +1,10 @@ -import { Card, CloseIcon, IconFrame } from '@pluralsh/design-system' -import { Layer } from 'grommet' +import { CloseIcon, IconFrame, Modal } from '@pluralsh/design-system' import { Div, Flex, Span } from 'honorable' import { ReactNode } from 'react' type InfoPanelProps = { title: string onClose?: () => void - width?: number | string - marginTop?: string contentHeight?: number | string contentPadding?: number | string contentGap?: number | string @@ -17,58 +14,44 @@ type InfoPanelProps = { export function InfoPanel({ title, onClose = () => {}, - width = 420, - marginTop = '0', contentHeight = 300, contentPadding = 0, contentGap = 0, children, }: InfoPanelProps) { return ( - - -
- - - {title} - - } - onClick={(_) => onClose()} - /> - -
+
- {children} + + {title} + + } + onClick={(_) => onClose()} + /> - - +
+ + {children} + + ) }