ISSUE-031 - Progress checkpoint.
A lot of work going on here. * Moved WorkspaceControls component to a new sub directory * Renamed overlay images * Started a static ChyronDriverBasic component (using Hamilton as an example) * Created a fancy DriverNumber rendering system * Defined DriverNumber style for Mercedes and no one else yet * A bunch of new states for the grid: cars, drivers, teams, etc * Defined a bunch of data for the drivers and teams * Created another string utility function to generate repeat strings; unit tests included
This commit is contained in:
1 parent
1c38137480
commit
db14bf902f
21 files changed
+787
-41
No files matched your search
@@ -50,12 +50,9 @@ export function OverlayDisplay({
|
||||
const xPos = currentOverlayItem?.position.x ?? 0;
|
||||
const yPos = currentOverlayItem?.position.y ?? 0;
|
||||
const transition = useTransition(visible, {
|
||||
from: { top: 50, opacity: 0 },
|
||||
enter: {
|
||||
top: 0,
|
||||
opacity: 1,
|
||||
},
|
||||
leave: { top: 50, opacity: 0 },
|
||||
from: { opacity: 0 },
|
||||
enter: { opacity: 1 },
|
||||
leave: { opacity: 0 },
|
||||
});
|
||||
|
||||
// Cannot make an earlier return because all hooks must run or React gets mad.
|
||||
|
||||
Reference in new issue
Block a user