Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed unnecessary classes #874

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Calculator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ const Calculator = () => {

return (
<>
<Flex direction='column' gap={4} className='site-wrapper'>
<Flex direction='column' gap={4}>
<Box mx='auto' mb={20}>
<Heading as={'h2'} mb={10} className='brand-theme' size={'xl'} textTransform='uppercase'>
<Heading as={'h2'} mb={10} size={'xl'} textTransform='uppercase'>
{t('calculator.title')}
</Heading>

Expand Down
6 changes: 3 additions & 3 deletions src/components/Faucet/FaucetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const FaucetView = ({ amount, waitHours }: FaucetViewProps) => {
<Grid templateColumns={'repeat(1, 1fr)'} gap={2}>
<GridItem display='flex' justifyContent='center' alignItems='center'>
<Box>
<Heading as={'h2'} className='brand-theme' size={'xl'} textTransform='uppercase'>
<Heading as={'h2'} size={'xl'} textTransform='uppercase'>
{t('faucet.title')}
</Heading>
<Text variant='p' mt={10} mb={10}>
Expand All @@ -28,7 +28,7 @@ export const FaucetView = ({ amount, waitHours }: FaucetViewProps) => {
<GridItem display='flex' justifyContent='center' alignItems='center'>
<Card minWidth={'100%'}>
<CardBody display='flex' flexDir='column' gap={3}>
<Heading as={'h2'} className='brand-theme' size={'sm'} textTransform='uppercase'>
<Heading as={'h2'} size={'sm'} textTransform='uppercase'>
{t('faucet.request_tokens.title')}
</Heading>
<Box>
Expand All @@ -45,7 +45,7 @@ export const FaucetView = ({ amount, waitHours }: FaucetViewProps) => {
<GridItem display='flex' justifyContent='center' alignItems='center' mt={10}>
<Card minWidth={'100%'}>
<CardBody display='flex' flexDir='column' gap={3}>
<Heading as={'h2'} className='brand-theme' size={'sm'} textTransform='uppercase'>
<Heading as={'h2'} size={'sm'} textTransform='uppercase'>
{t('faucet.general_information.title')}
</Heading>
<Text variant='p'>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Faucet/Stripe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const CheckoutReturn = ({ sessionId }: CheckoutReturnProps) => {

if (aborted) {
return (
<Box as='section' id='success' className='site-wrapper' mt={10} textAlign='center'>
<Box as='section' id='success' mt={10} textAlign='center'>
<Text>
<Trans
i18nKey='claim.signature_aborted'
Expand All @@ -183,7 +183,7 @@ export const CheckoutReturn = ({ sessionId }: CheckoutReturnProps) => {

if (!packageConsumed && !faucetPackage) {
return (
<Box as='section' id='success' className='site-wrapper' textAlign='center' mt={10}>
<Box as='section' id='success' textAlign='center' mt={10}>
<Spinner color='spinner' mb={5} />
<Box w='fit-content' mx='auto'>
<Trans
Expand All @@ -202,7 +202,7 @@ export const CheckoutReturn = ({ sessionId }: CheckoutReturnProps) => {

if (packageConsumed) {
return (
<Box as='section' id='success' className='site-wrapper' mt={10} textAlign='center'>
<Box as='section' id='success' mt={10} textAlign='center'>
<Trans
i18nKey='claim.purchase_success'
components={{
Expand Down
1 change: 0 additions & 1 deletion src/components/Organization/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const OrganizationHeader = () => {
}}
>
<OrganizationName
className='brand-theme'
as='p'
fontSize={32}
lineHeight={1.5}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Organization/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const OrganizationView = () => {
}, [page, error, finished, organization?.address])

return (
<Box className='site-wrapper' mb={44} mx='auto'>
<Box mb={44} mx='auto'>
<Header />

<Text as='h2' fontSize='heading-sm' fontWeight='bold' mb={4} textAlign={{ base: 'center', md2: 'start' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Process/CardDetailed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface Props {
const ProcessCardDetailed = ({ election }: Props) => {
return (
<ElectionProvider election={election}>
<Card variant='detailed' className='md-sizes-card'>
<Card variant='detailed'>
<CardBody>
<Link to={`/processes/${enforceHexPrefix(election.id)}`}>
<ProcessDetailedCardTitle />
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProcessCreate/CreationProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const CreationProgress = ({ error, sending, step }: CreationProgressProps
<ListItem key={key} display='flex' alignItems='center' gap={2}>
{steps[key as keyof CreationStepsState] ? (
<Flex justifyContent='center' alignItems='center' gap={2}>
<Flex className='creating-process-check' justifyContent='center' alignItems='center'>
<Flex justifyContent='center' alignItems='center'>
<Check />
</Flex>
<Text fontWeight='bold' color='primary.main'>
Expand Down
9 changes: 1 addition & 8 deletions src/components/ProcessCreate/Steps/Checks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,7 @@ const NeedsAccount = () => {
<>
<Wrapper>
<Box>
<Heading
className='brand-theme'
fontSize='md'
my={5}
textTransform='uppercase'
color='process_create.title'
fontWeight='normal'
>
<Heading fontSize='md' my={5} textTransform='uppercase' color='process_create.title' fontWeight='normal'>
{t('new_organization.title')}
</Heading>
<Box p={10} bgColor='process_create.section'>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProcessCreate/Steps/Confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export const Confirm = () => {
<ModalContent>
<ModalHeader>
<Text>{t('form.process_create.creating_process')}</Text>
<Box className='creating-process-img' />
<Box />
</ModalHeader>
{error && <ModalCloseButton />}
<ModalBody>
Expand Down
2 changes: 1 addition & 1 deletion src/elements/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Faucet = () => {

return (
<>
<Flex direction='column' gap={4} mt={10} mb={44} className='site-wrapper'>
<Flex direction='column' gap={4} mt={10} mb={44}>
<FaucetView amount={faucetAmount} waitHours={waitHours} />
</Flex>
</>
Expand Down
3 changes: 0 additions & 3 deletions src/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ export const theme = extendTheme(vtheme, {
'--box-shadow': '0 0 10px #e3e3e3',
'--box-shadow-dark-mode': '0 0 10px #101010',
},
'.brand-gradient': {
bgGradient: 'linear-gradient(to bottom, #B5F492, #338B93)',
},
'.md-sizes': {
'& :first-of-type': {
mt: 0,
Expand Down