Skip to content

Commit

Permalink
Changes to join public group
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag committed May 15, 2024
1 parent f4f9b38 commit e11740d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
8 changes: 0 additions & 8 deletions packages/berlin/src/data/publicGroups.ts

This file was deleted.

10 changes: 1 addition & 9 deletions packages/berlin/src/pages/PublicGroupRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ import useUser from '../hooks/useUser';
// API
import { fetchGroups, postUsersToGroups, fetchUsersToGroups, putUsersToGroups } from 'api';

// Data
import publicGroups from '../data/publicGroups';

// Components
import { Body } from '../components/typography/Body.styled';
import { FlexColumn } from '../components/containers/FlexColum.styled';
import { Form } from '../components/containers/Form.styled';
import { Subtitle } from '../components/typography/Subtitle.styled';
import Button from '../components/button';
import Select from '../components/select';
import { useMemo } from 'react';
Expand Down Expand Up @@ -127,8 +122,6 @@ function PublicGroupRegistration() {

return (
<FlexColumn $gap="1.5rem">
<Subtitle>{publicGroups.copy.subtitle}</Subtitle>
<Body>{publicGroups.copy.body}</Body>
<Form onSubmit={handleSubmit(onSubmit)}>
<Controller
name="group"
Expand All @@ -138,11 +131,10 @@ function PublicGroupRegistration() {
}}
render={({ field }) => (
<Select
label={`${capitalizedParam} group`}
placeholder={
prevUserToGroup
? prevUserToGroup.group.name
: `Select a ${groupCategoryNameParam} group`
: `Select your ${groupCategoryNameParam} group`
}
options={selectData}
value={field.value}
Expand Down

0 comments on commit e11740d

Please sign in to comment.