-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #490 from pknu-wap/develop
release 배포
- Loading branch information
Showing
19 changed files
with
233 additions
and
61 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import * as React from "react"; | ||
import { connect, ConnectedProps } from "react-redux"; | ||
import { RootState } from "../../modules/index"; | ||
import { toggleDarkMode } from "../../modules/darkSlice"; | ||
import IconButton from "../button/IconButton"; | ||
import RulesModal from "../modal/RulesModal"; | ||
import { useRecoilState } from "recoil"; | ||
import { rulesModalState, soundEffectStatus } from "../../recoil/recoil"; | ||
const { useEffect, useState, useRef } = React; | ||
|
||
type Props = { | ||
children?: React.ReactNode; | ||
}; | ||
|
||
type PropsFromRedux = ConnectedProps<typeof connector>; | ||
type ComponentProps = Props & PropsFromRedux; | ||
|
||
const Footer = ({ dark, toggleDarkMode }: ComponentProps) => { | ||
const [soundEffectStatusValue, ] = useRecoilState(soundEffectStatus); | ||
const [isClicked, setIsClicked] = useState(false) | ||
|
||
useEffect(() => { | ||
if (dark) { | ||
document.documentElement.classList.add("dark"); | ||
} else { | ||
document.documentElement.classList.remove("dark"); | ||
} | ||
}, [dark]); | ||
|
||
|
||
|
||
return ( | ||
<footer className="m-5 z-30 flex absolute bottom-0 w-11/12 justify-between"> | ||
<div className="relative bottom-3"> | ||
© WAG! | ||
</div> | ||
<div className="relative bottom-3"> | ||
v1.0.0 | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
const connector = connect((state: RootState) => ({ dark: state.dark.isDark }), { | ||
toggleDarkMode, | ||
}); | ||
export default connector(Footer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.