Skip to content

Commit 6959aa1

Browse files
Merge branch 'dev' into fix/console-errors
2 parents 0e14e54 + 6eca4d3 commit 6959aa1

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

src/components/sections/communities/overview/MainHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function CommunitySection(): ReactElement {
2727
<p className="mt-2 text-xl tracking-tight md:text-.5xl leading-tight max-w-text-sm lg:hidden">{community?.summary}</p>
2828
<p className="hidden mt-4 tracking-tight text-lg xl:text-.5xl max-w-text-md font-extralight lg:block">{community?.summary}</p>
2929
</div>
30-
<div className="self-end w-36 h-128 md:w-1/2 max-w-lg">
30+
<div className="self-end w-36 md:h-82 lg:h-128 md:w-1/2 max-w-lg">
3131
{community?.icon && <Image src={`${community?.icon}`} alt={community?.name || ""} className="relative w-full h-full" width={300} height={300} />}
3232
</div>
3333
</div>

src/pages/communities/[slug]/challenges/[challenge_id]/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export default function ChallengePage() {
7070
const title = useMemo(() => getMetadataTitle(t("communities.challenge.title"), challenge?.name || ""), [challenge?.name, t]);
7171

7272
const navigation = useNavigation();
73-
const router = useRouter();
74-
const { challenge_id, slug, locale } = router.query;
73+
const { query, locale } = useRouter();
74+
const { challenge_id, slug } = query;
7575

7676
const initPage = useCallback(async () => {
7777
const fetchPayload = {
@@ -88,7 +88,7 @@ export default function ChallengePage() {
8888
setChallenge(challenge);
8989
dispatch(initChallengeNavigationMenu(navigation.community));
9090
setLoading(false);
91-
}, [challenge_id, slug]);
91+
}, [challenge_id, slug, locale]);
9292

9393
useEffect(() => {
9494
initPage();

src/pages/communities/[slug]/challenges/[challenge_id]/submissions/[submission_id].tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export default function SubmissionPage() {
2323
const dispatch = useDispatch();
2424
const { t } = useTranslation();
2525
const navigation = useNavigation();
26-
const router = useRouter();
27-
const { slug, locale, submission_id, challenge_id } = router.query;
26+
const { query, locale } = useRouter();
27+
const { slug, submission_id, challenge_id } = query;
2828
const [loading, setLoading] = useState(true);
2929
const { current } = useSelector((state) => state.submissions);
3030

@@ -41,7 +41,7 @@ export default function SubmissionPage() {
4141
]);
4242
dispatch(initChallengeNavigationMenu(navigation.community));
4343
setLoading(false);
44-
}, [slug, submission_id]);
44+
}, [slug, submission_id, locale]);
4545

4646
useEffect(() => {
4747
initPage();

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module.exports = {
4646
17: "4.5rem",
4747
44: "11rem",
4848
62: "15.5rem",
49+
82: "20.5rem",
4950
96.5: "25.5rem",
5051
98: "28rem",
5152
128: "32rem",

0 commit comments

Comments
 (0)