Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ const GlobalStyle = createGlobalStyle`

const App: React.FC = () => {
const userContext = useContext(UserContext);

const domainComponents = getDomainComponents();
const subdomain = domainComponents?.length > 0 && domainComponents[0];
if (subdomain === 'nrw') {
window.open('https://partnerschule.corona-school.de', '_self');
}
const cooperationMode = getCooperationModeForSubdomain(subdomain);
if (subdomain && cooperationMode) {
// render the special page for cooperations with states of Germany
Expand Down
10 changes: 1 addition & 9 deletions src/assets/stateCooperations.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import { StateCooperationInfo } from '../utils/RegistrationCooperationUtils';
import Icons from './icons';

export const supportedStateCooperations: StateCooperationInfo[] = [
{
name: 'Nordrhein-Westfalen',
abbrev: 'NW',
subdomain: 'nrw',
coatOfArms: Icons.CoatOfArmsNRW,
},
];
export const supportedStateCooperations: StateCooperationInfo[] = [];
3 changes: 2 additions & 1 deletion src/components/forms/registration/EmailField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const EmailField: React.FC<Props> = (props) => {
return (
<Form.Item
className={props.className}
label="E-Mail-Adresse"
label="Deine persönliche E-Mail-Adresse"
name="email"
initialValue={props.initialValue}
validateFirst
Expand All @@ -33,6 +33,7 @@ export const EmailField: React.FC<Props> = (props) => {
validateTrigger: 'onSubmit',
},
]}
extra="Trage hier deine persönliche E-Mail-Adresse ein. Stelle dabei sicher, dass du Zugriff auf diese E-Mail-Adresse hast. Nach der Registrierung erhältst du eine Verifizierungsmail von uns, in der du deine Anmeldung bestätigen musst."
>
<Input type="email" placeholder="max.musterman@email.com" />
</Form.Item>
Expand Down
3 changes: 2 additions & 1 deletion src/routes/RegisterTutee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ const RegisterTutee: React.FC<Props> = ({
},
]}
initialValue={formData.teacherEmail}
extra="Beachte bitte, dass du hier nicht deine eigene, sondern die E-Mail-Adresse deiner Lehrkraft angeben musst. Mit dieser Angabe können wir dich deiner Schule zuordnen."
>
<Input
placeholder="Hier die E-Mail-Adresse deines/deiner Lehrer*in"
Expand Down Expand Up @@ -1040,7 +1041,7 @@ const RegisterTutee: React.FC<Props> = ({
</div>
</Form>
<Text className={classes.helpText}>
Du hast schon ein Account? Hier{' '}
Du hast schon einen Account? Hier{' '}
<Link style={{ color: '#4e6ae6' }} to="/login">
anmelden
</Link>
Expand Down