-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67f350c
commit f79d360
Showing
72 changed files
with
1,428 additions
and
1,485 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import React, { ReactNode } from 'react' | ||
import { Container } from './styles' | ||
import React, { ReactNode } from "react"; | ||
import { Container } from "./styles"; | ||
|
||
interface Props { | ||
child: ReactNode | ||
child: ReactNode; | ||
} | ||
|
||
const Secret: React.FC<Props> = ({ child }) => { | ||
const secret = typeof Audio !== 'undefined' ? new Audio('../audio/secret.ogx') : undefined | ||
const secret = | ||
typeof Audio !== "undefined" ? new Audio("../audio/secret.ogx") : undefined; | ||
|
||
return ( | ||
<Container onClick={async () => await secret?.play()}> | ||
{ child } | ||
</Container> | ||
) | ||
} | ||
<Container onClick={async () => await secret?.play()}>{child}</Container> | ||
); | ||
}; | ||
|
||
export default Secret | ||
export default Secret; |
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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
import FilterButton from './FilterButton' | ||
import { | ||
Menu | ||
} from './FilterOptions.styles' | ||
import FilterButton from "./FilterButton"; | ||
import { Menu } from "./FilterOptions.styles"; | ||
|
||
interface Props { | ||
filter: null | string, | ||
setFilter: (arg: string | null) => void | ||
filter: null | string; | ||
setFilter: (arg: string | null) => void; | ||
} | ||
|
||
const FilterOptions: React.FC<Props> = ({ filter, setFilter }) => { | ||
return ( | ||
<Menu> | ||
<FilterButton type={null} filter={filter} setFilter={setFilter} /> | ||
<FilterButton type='book' filter={filter} setFilter={setFilter} /> | ||
<FilterButton type='periodical' filter={filter} setFilter={setFilter} /> | ||
<FilterButton type='picture' filter={filter} setFilter={setFilter} /> | ||
<FilterButton type='website' filter={filter} setFilter={setFilter} /> | ||
<FilterButton type='video' filter={filter} setFilter={setFilter} /> | ||
<FilterButton type="book" filter={filter} setFilter={setFilter} /> | ||
<FilterButton type="periodical" filter={filter} setFilter={setFilter} /> | ||
<FilterButton type="picture" filter={filter} setFilter={setFilter} /> | ||
<FilterButton type="website" filter={filter} setFilter={setFilter} /> | ||
<FilterButton type="video" filter={filter} setFilter={setFilter} /> | ||
</Menu> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default FilterOptions | ||
export default FilterOptions; |
Oops, something went wrong.