Skip to content

Commit

Permalink
Merge pull request #145 from p0nch0d3v/138-login-through-google
Browse files Browse the repository at this point in the history
privacy policy style update
  • Loading branch information
p0nch0d3v authored Oct 22, 2024
2 parents d4d0566 + 6dcd270 commit 54dd390
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ import Markdown from 'react-markdown'

export default function PrivacyPolicyComponent() {
const [content, setContent] = useState('');
useEffect(()=>{
useEffect(() => {
fetch('/privacyPolicy.md')
.then((r) => r.text())
.then(text => {
setContent(text);
})
.then((r) => r.text())
.then(text => {
setContent(text);
})
}, [])
return <Markdown>
{content}
</Markdown>

return (
<div style={{margin:'1rem'}}>
<Markdown>
{content}
</Markdown>
</div>);
}

0 comments on commit 54dd390

Please sign in to comment.