Skip to content

Commit

Permalink
chore: ok button always enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TejasvOnly committed Oct 28, 2023
1 parent 54a4f28 commit f00602e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import DialogBox from '../../../../../designSystem/designComponents/dialog/dialo
import CustomCheckBox from '../../../../../designSystem/designComponents/input/checkbox';
import Markdown from '../../../../../designSystem/designComponents/textComponents/Markdown';

const alertText = 'Live Data for Near is under maintenance';
const alertText = 'Live data for Near is under maintenance';

export const DeprecationNotice: React.FC = () => {
const [isAlertHidden, setIsAlertHidden] = useState(
Expand Down Expand Up @@ -65,13 +65,11 @@ export const DeprecationNotice: React.FC = () => {
<CustomButton
onClick={() => {
setIsDialogOpen(false);
setIsAlertHidden(true);
localStorage.setItem(
'isNearAlertHidden',
isAlertHidden.toString()
);
}}
disabled={!isAlertHidden}
style={{
textTransform: 'none',
padding: '0.5rem 3.5rem',
Expand Down

0 comments on commit f00602e

Please sign in to comment.