Skip to content

Commit

Permalink
all part 2 changes made
Browse files Browse the repository at this point in the history
  • Loading branch information
LuHG18 committed Oct 31, 2023
1 parent 8cd4d08 commit 90e8799
Show file tree
Hide file tree
Showing 10 changed files with 1,814 additions and 6 deletions.
9 changes: 9 additions & 0 deletions frontend/src/common/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from "react";
import { COLORS, URLs } from "../../constants";
import { LinkedIn, YouTube, Instagram, GitHub } from "@mui/icons-material";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faReact } from "@fortawesome/free-brands-svg-icons";
import { ThemeProvider, createTheme } from "@mui/material/styles";

const theme = createTheme({
Expand Down Expand Up @@ -57,6 +59,13 @@ const Footer = () => {
>
<GitHub />
</a>
<a
className="foot-element"
data-testid="react-icon"
title="Pretty React Icon"
>
<FontAwesomeIcon icon={faReact} size="2x"/>
</a>
</div>
</ThemeProvider>
<div
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/common/components/NavBarMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const NavbarMain = () => {
<Grid item>
{isSignedIn(user) ? (
<Link href="/train" passHref className="nav-link">
Train
Hello World
</Link>
) : null}
</Grid>
Expand All @@ -123,7 +123,7 @@ const NavbarMain = () => {
</Link>
</Grid>
<Grid item>
<Link href={URLs.donate} passHref className="nav-link">
<Link href="https://www.youtube.com/watch?v=QrR_gm6RqCo" passHref className="nav-link">
Donate
</Link>
</Grid>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/common/redux/userLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ export const signInViaEmailAndPassword = createAsyncThunk<
"currentUser/signInViaEmailAndPassword",
async ({ email, password }, thunkAPI) => {
try {
console.log("User's email:", email);
await signInWithEmailAndPassword(auth, email, password);
return;
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ interface OnChangeArgs {
interface LayerNodeData {
label:
| (typeof STEP_SETTINGS.PARAMETERS.layers)[ALL_LAYERS]["label"]
| "Start";
| "Beginning";
value: ALL_LAYERS | "root";
parameters?: number[];
onChange: (args: OnChangeArgs) => void;
Expand All @@ -282,7 +282,7 @@ const ROOT_NODE: Node<LayerNodeData> = {
position: { x: DEFAULT_X_POSITION, y: 0 },
deletable: false,
data: {
label: "Start",
label: "Beginning",
value: "root",
parameters: [],
onChange: () => undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const TrainspaceStepInner = ({
train(trainspace)
.unwrap()
.then(({ trainspaceId }) => {
console.log('User UID (trainspaceId):', trainspaceId);
router.push({ pathname: `/train/${trainspaceId}` }).then(() => {
dispatch(removeTrainspaceData());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const STEP_SETTINGS = {
problemTypes: [
{ label: "Classification", value: "CLASSIFICATION" },
{ label: "Regression", value: "REGRESSION" },
{ label: "Object Detection", value: "OBJECT_DETECTION" }
],
criterions: [
{
Expand Down
Loading

0 comments on commit 90e8799

Please sign in to comment.