Skip to content

Commit b9905bf

Browse files
committed
Fix UI 2
1 parent 68bd914 commit b9905bf

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

frontend/src/components/layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const Header: React.FC<Props> = ({ isDrawerOpen, onDrawerOpen, isMobile }) => {
9696
<MenuIcon />
9797
</IconButton>
9898
<Typography variant="h6" noWrap className={classes.title}>
99-
React GraphQl Typescript
99+
React Prisma Typescript
100100
</Typography>
101101
<IconButton
102102
aria-label="More"

frontend/src/components/post/PostCreate.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ const Login: React.FC = () => {
9999
value={values.title}
100100
/>
101101
{errors.title && touched.title && errors.title}
102-
<Button type="submit" disabled={isSubmitting}>
103-
Submit
104-
</Button>
102+
<Box mt={2} clone>
103+
<Button type="submit" disabled={isSubmitting}>
104+
Submit
105+
</Button>
106+
</Box>
105107
</form>
106108
</Box>
107109
)}

frontend/src/components/post/PostEdit.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const PostEdit: React.FC = () => {
9898
if (!postQuery.data.post) return <div>Post not found</div>
9999

100100
return (
101-
<Box p={1} clone>
101+
<Box p={3} clone>
102102
<Paper>
103103
<h1>Update {postQuery.data.post.published ? 'Post' : 'Draft'}</h1>
104104
<Formik
@@ -127,9 +127,11 @@ const PostEdit: React.FC = () => {
127127
value={values.title}
128128
/>
129129
{errors.title && touched.title && errors.title}
130-
<Button type="submit" disabled={isSubmitting}>
131-
Save
132-
</Button>
130+
<Box mt={2} clone>
131+
<Button type="submit" disabled={isSubmitting}>
132+
Save
133+
</Button>
134+
</Box>
133135
</form>
134136
</Box>
135137
)}

frontend/src/routes/GlobalRoutes.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ import Signup from './../components/auth/Signup'
88

99
import NoAuthRoute from './../components/NoAuthRoute'
1010

11-
// const initialState = {
12-
// isSideBarOpen: false,
13-
// variant: 'permanent',
14-
// isMobile: false
15-
// }
16-
1711
const GlobalRoutes: React.FC = () => {
1812
return (
1913
<Switch>

0 commit comments

Comments
 (0)