Skip to content

Commit

Permalink
Merge branch 'feat/adjusts'
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzBECK committed Dec 10, 2023
2 parents 19f4261 + c6eb19c commit abd528b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
5 changes: 1 addition & 4 deletions game/FrontEnd/src/pages/Game/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { Link, useNavigate, useParams } from "react-router-dom";
import { Link, useParams } from "react-router-dom";
import api from "../../api";
import InventarioModal from "../../components/InventarioModal";
import LojaModal from "../../components/LojaModal";
import { IInventario, ILocal, IPersonagem, Item } from "../../types";
import {
ArrowLink,
BtnBack,
Container,
Content,
Header,
Expand All @@ -32,7 +31,6 @@ const Game = () => {

const [selectedLocalId, setSelectedLocalId] = useState<number | null>(null);

const navigate = useNavigate();
const personagemJogador: IPersonagem | undefined = useMemo(() => {
return personagens?.find((personagem) =>
personagem.tipop?.includes("personagem_jogavel")
Expand Down Expand Up @@ -152,7 +150,6 @@ const Game = () => {
</Link>
<Container>
<Header>
<BtnBack onClick={() => navigate(-1)}>Voltar</BtnBack>
<h1>{`Local: ${
locais.find((local) => local.idlocal === selectedLocalId)?.nomel ??
"Sem local na região"
Expand Down
10 changes: 0 additions & 10 deletions game/FrontEnd/src/pages/Game/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,3 @@ export const LojistaContainer = styled.div`
box-sizing: border-box;
cursor: pointer;
`;

export const BtnBack = styled.button`
width: 3.5rem;
height: 2.5rem;
flex: 0 0 auto;
cursor: pointer;
border-radius: 10px;
align-items: center;
background-color: #2e2b28;
`;

0 comments on commit abd528b

Please sign in to comment.