Skip to content

Commit

Permalink
129 form fields styles (#178)
Browse files Browse the repository at this point in the history
* RegisterForm content width from 2 to 1

* Profile export name renaming

* ProfileDetail contentWidth from 2 to 1

* all registration components delegate to the strom/registracia page

* Profile contentWidth from 2 to 1

* Profile contentWidth back to 2
  • Loading branch information
michalmasrna1 authored Nov 11, 2023
1 parent e551af0 commit 505ee37
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/pages/malynar/profil/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {NextPage} from 'next'

import Page from '../../strom/profil/index'

const Vysledky: NextPage = () => {
const Profile: NextPage = () => {
return <Page />
}

export default Vysledky
export default Profile
11 changes: 4 additions & 7 deletions src/pages/malynar/registracia.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import {NextPage} from 'next'

import {PageLayout} from '@/components/PageLayout/PageLayout'
import {RegisterForm} from '@/components/RegisterForm/RegisterForm'
import Page from '../strom/registracia'

const Register: NextPage = () => (
<PageLayout contentWidth={2} title="Registrácia">
<RegisterForm />
</PageLayout>
)
const Register: NextPage = () => {
return <Page />
}

export default Register
4 changes: 2 additions & 2 deletions src/pages/matik/profil/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {NextPage} from 'next'

import Page from '../../strom/profil/index'

const Vysledky: NextPage = () => {
const Profile: NextPage = () => {
return <Page />
}

export default Vysledky
export default Profile
11 changes: 4 additions & 7 deletions src/pages/matik/registracia.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import {NextPage} from 'next'

import {PageLayout} from '@/components/PageLayout/PageLayout'
import {RegisterForm} from '@/components/RegisterForm/RegisterForm'
import Page from '../strom/registracia'

const Register: NextPage = () => (
<PageLayout contentWidth={2} title="Registrácia">
<RegisterForm />
</PageLayout>
)
const Register: NextPage = () => {
return <Page />
}

export default Register
4 changes: 2 additions & 2 deletions src/pages/strom/profil/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import {NextPage} from 'next'
import {PageLayout} from '@/components/PageLayout/PageLayout'
import {ProfileDetail} from '@/components/Profile/ProfileDetail'

const Profil: NextPage = () => (
const Profile: NextPage = () => (
<PageLayout contentWidth={2} title="Profil">
<ProfileDetail />
</PageLayout>
)

export default Profil
export default Profile
2 changes: 1 addition & 1 deletion src/pages/strom/profil/uprava.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {PageLayout} from '@/components/PageLayout/PageLayout'
import {ProfileForm} from '@/components/Profile/ProfileForm'

const Profil: NextPage = () => (
<PageLayout contentWidth={2} title="Profil">
<PageLayout contentWidth={1} title="Profil">
<ProfileForm />
</PageLayout>
)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/strom/registracia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {PageLayout} from '@/components/PageLayout/PageLayout'
import {RegisterForm} from '@/components/RegisterForm/RegisterForm'

const Register: NextPage = () => (
<PageLayout contentWidth={2} title="Registrácia">
<PageLayout contentWidth={1} title="Registrácia">
<RegisterForm />
</PageLayout>
)
Expand Down

0 comments on commit 505ee37

Please sign in to comment.