Skip to content

Commit

Permalink
fix: add ts-check to clearStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Aug 12, 2023
1 parent 89b851d commit 6caad39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ClearStorage.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react'
// @ts-check
import * as React from 'react'
import { Navigate } from 'react-router-dom'

export default function ClearStorage() {
localStorage.clear()
sessionStorage.clear()
return <Navigate push to="/" />
return <Navigate to="/" />
}

0 comments on commit 6caad39

Please # to comment.