Skip to content

Commit

Permalink
update button color
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Nov 28, 2023
1 parent ee4eef3 commit dc2fdbb
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 22,047 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
needs: ['lint', 'sast', 'sca']
runs-on: ubuntu-latest
steps:
- run: echo ok
- run: echo ok
2 changes: 1 addition & 1 deletion components/rewards/RewardsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ const LandingPageButton: FunctionComponent<LandingPageButtonProps> = ({
}) => {
return (
<a
className={`flex w-max items-center justify-center rounded-md bg-blue-600 md:hover:bg-blue-700 h-16 px-6 default-transition font-display focus:outline-none text-th-fgd-1 ${className}`}
className={`flex w-max items-center justify-center rounded-md bg-th-button md:hover:bg-th-button-hover h-16 px-6 default-transition font-display focus:outline-none text-th-fgd-1 ${className}`}
href={path}
rel="noopener noreferrer"
>
Expand Down
12 changes: 6 additions & 6 deletions components/shared/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const Button: FunctionComponent<ButtonCombinedProps> = ({
size === 'medium'
? 'h-10 px-4'
: size === 'large'
? 'h-12 px-6'
: 'h-8 px-3'
? 'h-12 px-6'
: 'h-8 px-3'
} default-transition font-display text-th-fgd-1
} focus:outline-none disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:brightness-100 ${className}`}
{...props}
Expand Down Expand Up @@ -70,10 +70,10 @@ export const IconButton: FunctionComponent<IconButtonCombinedProps> = ({
size === 'large'
? 'h-12 w-12'
: size === 'small'
? 'h-8 w-8'
: size === 'medium'
? 'h-10 w-10'
: ''
? 'h-8 w-8'
: size === 'medium'
? 'h-10 w-10'
: ''
} default-transition items-center justify-center rounded-full ${
hideBg
? 'md:hover:text-th-active'
Expand Down
4 changes: 2 additions & 2 deletions components/shared/ButtonLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const ButtonLink: FunctionComponent<ButtonLinkProps> = ({
size === 'medium'
? 'h-10 px-4 text-sm'
: size === 'large'
? 'h-12 px-6'
: 'h-8 px-3'
? 'h-12 px-6'
: 'h-8 px-3'
} default-transition font-display focus:outline-none text-th-fgd-1 ${className}`}
href={path}
rel="noopener noreferrer"
Expand Down
4 changes: 2 additions & 2 deletions components/shared/Change.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const Change = ({
change > 0
? 'text-th-up'
: change < 0
? 'text-th-down'
: 'text-th-fgd-4'
? 'text-th-down'
: 'text-th-fgd-4'
}`}
>
{prefix ? prefix : ''}
Expand Down
4 changes: 2 additions & 2 deletions hooks/useCountdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const useCountdown = (targetDate) => {
const countDownDate = new Date(targetDate).getTime()

const [countDown, setCountDown] = useState(
countDownDate - new Date().getTime()
countDownDate - new Date().getTime(),
)

useEffect(() => {
Expand All @@ -22,7 +22,7 @@ const getReturnValues = (countDown) => {
// calculate time left
const days = Math.floor(countDown / (1000 * 60 * 60 * 24))
const hours = Math.floor(
(countDown % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)
(countDown % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60),
)
const minutes = Math.floor((countDown % (1000 * 60 * 60)) / (1000 * 60))
const seconds = Math.floor((countDown % (1000 * 60)) / 1000)
Expand Down
12 changes: 6 additions & 6 deletions hooks/useLocalStorageState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const localStorageListeners = {}

export function useLocalStorageStringState(
key: string,
defaultState: string | null = null
defaultState: string | null = null,
): [string | null, (newState: string | null) => void] {
const state =
typeof window !== 'undefined'
Expand All @@ -20,7 +20,7 @@ export function useLocalStorageStringState(
localStorageListeners[key].push(notify)
return () => {
localStorageListeners[key] = localStorageListeners[key].filter(
(listener) => listener !== notify
(listener) => listener !== notify,
)
if (localStorageListeners[key].length === 0) {
delete localStorageListeners[key]
Expand All @@ -44,22 +44,22 @@ export function useLocalStorageStringState(
localStorage.setItem(key, newState)
}
localStorageListeners[key].forEach((listener) =>
listener(key + '\n' + newState)
listener(key + '\n' + newState),
)
},
[state, key]
[state, key],
)

return [state, setState]
}

export default function useLocalStorageState<T = any>(
key: string,
defaultState: T | null = null
defaultState: T | null = null,
): [T, (newState: T) => void] {
const [stringState, setStringState] = useLocalStorageStringState(
key,
JSON.stringify(defaultState)
JSON.stringify(defaultState),
)

return [
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const nextConfig = {
'process.env': {
BUILD_ID: JSON.stringify(opts.buildId),
},
})
}),
)

return config
Expand Down
Loading

0 comments on commit dc2fdbb

Please sign in to comment.