Skip to content

Commit

Permalink
firce update
Browse files Browse the repository at this point in the history
  • Loading branch information
yussan committed Aug 2, 2023
1 parent 84218fc commit 3a13677
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
9 changes: 6 additions & 3 deletions src/components/boxs/CompetitionBoxV3/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ const CompetitionBoxV3 = (props) => {
{data?.competitions && status && subtitle ? (
<div className="col-md-12">
<br />
menampilkan <strong> {data.length || 0}</strong> dari{" "}
<strong>{data.total > 5000 ? "banyak" : data.total}</strong>{" "}
menampilkan <strong>
{" "}
{data?.competitions.length || 0}
</strong>{" "}
dari <strong>{data.total > 5000 ? "banyak" : data.total}</strong>{" "}
kompetisi
<br />
</div>
Expand All @@ -77,7 +80,7 @@ const CompetitionBoxV3 = (props) => {
{status && data ? (
!data?.competitions ? (
<p className="text-muted align-center">
Kompetisi tidak ditemukan
Kompetisi Tidak Ditemukan
</p>
) : (
generateList(size, data.competitions)
Expand Down
2 changes: 1 addition & 1 deletion src/components/boxs/CompetitionDetailHeader/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const CompetitionDetailBox = ({ data, submissionFields }) => {
},
{
title: "Jelajah Kompetisi",
link: "/browse?status=active",
link: "/browse",
},
{
title: data.title,
Expand Down
2 changes: 1 addition & 1 deletion src/components/boxs/FullPageError.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const FullPageError = ({ message, code }) => {
<Link href="/">
<a>Kembali ke home</a>
</Link>
<Link href="/browse?status=active">
<Link href="/browse">
<a>Jelajah</a>
</Link>
<Link href="/add">
Expand Down
5 changes: 1 addition & 4 deletions src/components/cards/ErrorCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ const ErrorCard = (props) => (
<h2>{props.message || "Telah Terjadi Masalah"}</h2>
<p>
Jika anda tersesat, silahkan masuk ke{" "}
<Link
href="/browse?status=active"
style={{ textDecoration: "underline" }}
>
<Link href="/browse" style={{ textDecoration: "underline" }}>
<a>Jelajah Kompetisi</a>
</Link>
&nbsp; untuk menemukan kompetisi lainnya atau kembali ke{" "}
Expand Down
2 changes: 1 addition & 1 deletion src/components/footers/GlobalFooter/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const Index = (props) => {
</Link>
</li>
<li>
<Link href="/browse?status=active">
<Link href="/browse">
<a>Jelajah kompetisi</a>
</Link>
</li>
Expand Down
4 changes: 2 additions & 2 deletions src/components/headers/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const Header = (props) => {
onClick={(e) => e.preventDefault()}
/>
<li>
<Link onClick={() => toggleNavTop()} href="/browse?status=active">
<Link onClick={() => toggleNavTop()} href="/browse">
<a>jelajah</a>
</Link>
</li>
Expand Down Expand Up @@ -177,7 +177,7 @@ const Header = (props) => {
id="btn-closesearch"
onClick={(e) => {
e.preventDefault();
if (q != "") return Router.push("/browse?status=active");
if (q != "") return Router.push("/browse");
}}
href="#"
title="tutup pencarian"
Expand Down
4 changes: 2 additions & 2 deletions src/components/navigations/TransparentNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { fullPageLoader } from "@components/preloaders/FullPage";

const Menus = [
{
link: "/browse?status=active",
link: "/browse",
keys: ["browse", "competitionDetail"],
text: "Jelajah",
title: "Jelajahi kompetisi dari berbagai kategori",
Expand Down Expand Up @@ -226,7 +226,7 @@ const Navbar = (props) => {
setSearch(!search);
setKeyword("");

if (close) Router.push("/browse?status=active");
if (close) Router.push("/browse");
};

// logout handler
Expand Down
2 changes: 1 addition & 1 deletion src/pages/browse/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const BreadcrumbData = [
},
{
title: "Jelajah Kompetisi",
link: "/browse?status=active",
link: "/browse",
},
];

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Home = ({ serverData = {} }) => {
<CompetitionBoxV3 subtitle={false} {...respCompLatest} />

<div className="row align-center">
<Link href="/browse?status=active">
<Link href="/browse">
<a className="btn btn-bordergray">JELAJAH KOMPETISI</a>
</Link>
</div>
Expand Down

0 comments on commit 3a13677

Please sign in to comment.