Skip to content

Commit

Permalink
fix: refactor variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 18, 2022
1 parent 2f4a775 commit edbc2ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/CookieAlert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ const css = {
fontSize: '14px',
};

const ONE_DAY = 1;

export function CookieAlert() {
return (
<CookieConsent location="bottom" buttonText="OK" cookieName="alert" style={css} buttonStyle={buttonCss} expires={1}>
<CookieConsent
location="bottom"
buttonText="OK"
cookieName="alert"
style={css}
buttonStyle={buttonCss}
expires={ONE_DAY}
>
Este site está em modo de desenvolvimento, por isso, podem ocorrer erros e bugs.
</CookieConsent>
);
Expand Down

0 comments on commit edbc2ff

Please sign in to comment.