Skip to content

Commit

Permalink
added padding to jumbotron apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonava committed Feb 20, 2024
1 parent 7536f4e commit e4100f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/hooks/useBreakpoint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { useState, useEffect } from 'react';
import { debounce } from 'lodash';

Expand Down Expand Up @@ -55,10 +54,7 @@ export const useBreakpoint = () => {
}

const [size, setSize] = useState(() => resolveBreakpoint(window.innerWidth));

const setBreakpoint = () => {
setSize(resolveBreakpoint(window.innerWidth));
};
const setBreakpoint = () => setSize(resolveBreakpoint(window.innerWidth));

useEffect(() => {
const calcInnerWidth = debounce(setBreakpoint, 200);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function apply() {
<Navbar />
<div className="center" style={{ height: `${jumbotronHeightPx}px` }}>
<div
className="center"
className="center p-4"
style={{ flexDirection: 'column', maxWidth: '800px' }}
>
<h1 className="pg-heading">
Expand Down

0 comments on commit e4100f7

Please sign in to comment.