-
-
Notifications
You must be signed in to change notification settings - Fork 712
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
Showing
6 changed files
with
154 additions
and
14 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/components/CurrentHourIndicator/CurrentHourIndicator.module.css
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,19 @@ | ||
.round { | ||
background-color: red; | ||
border-radius: 100%; | ||
width: 15px; | ||
height: 15px; | ||
} | ||
.line { | ||
width: 100%; | ||
height: 1px; | ||
background-color: red; | ||
margin: auto; | ||
} | ||
.container { | ||
position: relative; | ||
display: flex; | ||
flex-direction: row; | ||
top: -8px; | ||
left: -9px; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/components/CurrentHourIndicator/CurrentHourIndicator.test.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,10 @@ | ||
import type { Dispatch, SetStateAction } from 'react'; | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import CurrentHourIndicator from './CurrentHourIndicator'; | ||
|
||
describe('Testing Current Hour Indicator', () => { | ||
test('Component Should be rendered properly', async () => { | ||
render(<CurrentHourIndicator />); | ||
}); | ||
}); |
13 changes: 13 additions & 0 deletions
13
src/components/CurrentHourIndicator/CurrentHourIndicator.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,13 @@ | ||
import React from 'react'; | ||
import styles from './CurrentHourIndicator.module.css'; | ||
|
||
const CurrentHourIndicator = (): JSX.Element => { | ||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.round}></div> | ||
<div className={styles.line}></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CurrentHourIndicator; |
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