Skip to content

Commit dd311ac

Browse files
authored
fix: Misc (minor style fixes) and websocket (#58)
* fix: Misc (minor style fixes) and websocket * fix types and history styles
1 parent 5003f52 commit dd311ac

File tree

22 files changed

+145
-98
lines changed

22 files changed

+145
-98
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.8'
22

33
services:
44
web:
5-
container_name: codecharater_web
5+
container_name: codecharacter_web
66
build: .
77
ports:
88
- '3000:80'

src/components/Auth/Auth/Login/Login.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ function Login(): JSX.Element {
119119
<div className={styles.mainContainer}>
120120
<Card className={styles.cardContainer}>
121121
<div className={styles.titleContainer}>
122-
<h1 className={styles.name}>Welcome To CodeCharatcer!</h1>
122+
<h1 className={styles.name}>Welcome To CodeCharacter!</h1>
123123
<Container className={styles.subTitle}>
124-
Log in to access your dashboard and profile 👏️🎊️{' '}
124+
Log in to access your dashboard and profile{' '}
125125
</Container>
126126
</div>
127127
<form className={styles.formContainer}>
@@ -144,7 +144,7 @@ function Login(): JSX.Element {
144144
{emailError && login ? (
145145
<AlertMessage
146146
err={emailError}
147-
content={'Please ! Enter a valid Email ID'}
147+
content={'Please enter a valid Email ID'}
148148
/>
149149
) : (
150150
<></>

src/components/Auth/Auth/ProgressBar/progressBar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
.progressBar {
77
height: 5px;
8-
width: 230px;
8+
width: 250px;
99
text-align: center;
1010
margin: auto;
1111
}

src/components/Auth/Auth/Register/FormDetails/UserCreditionals.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function UserCreditionals(props: creditionals): JSX.Element {
4949
};
5050
return (
5151
<div>
52-
<div className={styles.levelTitle}>User Creditionals</div>
52+
<div className={styles.levelTitle}>User Credentials</div>
5353
<Form.Group className="mb-3" controlId="formBasicPassword">
5454
<Form.Label>
5555
Password{' '}

src/components/Auth/Auth/Register/Register.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export default function Register(): JSX.Element {
298298
<div className={styles.titleContainer}>
299299
<h1> Register to CodeCharacter</h1>
300300
<Container className={styles.subTitle}>
301-
<p> Register now and code your way through 👨‍💻️!! </p>
301+
<p> Register now and code your way through! </p>
302302
</Container>
303303
</div>
304304
<ProgressBar

src/components/Auth/Auth/auth.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
.cardContainer {
19-
max-width: 400px;
19+
max-width: 500px;
2020
padding: 2%;
2121
padding-top: 0%;
2222
margin: auto;

src/components/BattleTV/BattleTV.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,14 @@ function PaginatedItems() {
103103
className={styles.watchButton}
104104
onClick={() => {
105105
dispatch(
106-
getLogAction(getUsersGame(loggedInUser, match).id),
106+
getLogAction({
107+
id: getUsersGame(loggedInUser, match).id,
108+
callback: () => {
109+
console.log('success');
110+
navigate('/dashboard');
111+
},
112+
}),
107113
);
108-
navigate('/dashboard');
109114
}}
110115
>
111116
Watch
@@ -175,7 +180,7 @@ export default function BattleTV(): JSX.Element {
175180
<div className={styles.destruction}>Destruction %</div>
176181
<div className={styles.vs}>VS</div>
177182
<div className={styles.destruction}>Destruction %</div>
178-
<div className={styles.coinused}>Coinused</div>
183+
<div className={styles.coinused}>Coins Used</div>
179184
<div className={styles.username}></div>
180185
<div className={styles.pic}></div>
181186
</div>

src/components/BattleTV/BattleTvSlice.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ export function fetchBattleTv(): ThunkAction<
6363
.then(response => {
6464
useAppDispatch(getBattleTvSuccess(response));
6565
})
66-
.catch(error => {
67-
console.log(error);
66+
.catch(() => {
6867
useAppDispatch(getBattleTvFailure());
6968
});
7069
};

src/components/CommitHistory/CommitTree/CommitHistory.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.vertical-timeline-element--work,
22
.vertical-timeline-element {
3+
width: 90%;
34
height: 120px;
45
padding: 0%;
56
}

src/components/CommitHistory/HistoryMain/History.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default function History(): JSX.Element {
112112
</div>
113113
</div>
114114
<Row className={styles.viewContainer}>
115-
<Col md="3">
115+
<Col lg="3">
116116
<div></div>
117117
<div className={styles.completeTimeline}>
118118
{completeMapHistory && completeCodeHistroy ? (
@@ -131,7 +131,7 @@ export default function History(): JSX.Element {
131131
</div>
132132
<div></div>
133133
</Col>
134-
<Col md="9" className={styles.codeView}>
134+
<Col lg="9" className={styles.codeView}>
135135
<div className={BigButton == 'Code' ? styles.codeBox : styles.mapBox}>
136136
{BigButton == 'Code' ? (
137137
<CodeView code={currentCode} codeLang={codeLanguage} />

0 commit comments

Comments
 (0)