-
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.
refactor(Cooldown): Component for cooldown
- Loading branch information
1 parent
77027e1
commit 1d0ac0c
Showing
5 changed files
with
59 additions
and
34 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
16 changes: 16 additions & 0 deletions
16
src/components/dashboard/ship-details/cooldown/Cooldown.tsx
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,16 @@ | ||
import { FC } from "react"; | ||
import { useShip } from "../../../../hooks/ship/useShip"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import './cooldown.css'; | ||
interface CooldownProps { }; | ||
|
||
export const Cooldown: FC<CooldownProps> = () => { | ||
|
||
const shipContext = useShip(); | ||
|
||
return ( | ||
<span> | ||
<FontAwesomeIcon icon="clock" className="yellow-color mr-3" />{shipContext.cooldown}s | ||
</span> | ||
); | ||
} |
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,3 @@ | ||
.yellow-color { | ||
color: var(--color-primary); | ||
} |
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 |
---|---|---|
|
@@ -11,6 +11,10 @@ | |
justify-content: center; | ||
} | ||
|
||
.justify-between { | ||
justify-content: space-between; | ||
} | ||
|
||
.wrap { | ||
flex-wrap: wrap; | ||
} |