Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Added a list of static drives #3

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

GabrielCartier
Copy link
Member

No description provided.

Unknown added 4 commits January 15, 2020 18:19
Need to build a static function for model
Have to work on the CSS for the list
Cleaned up App.tsx
Made some base components
Started using hooks for the drives list

export const App: React.FC = () => {
return (
<div className="App">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove className

@@ -0,0 +1,38 @@
.App {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all filename should be in lowercase. Also when I said a base css I meant reset css:
https://necolas.github.io/normalize.css/

Comment on lines +17 to +28
<Container {...props}>
{drives.current.map((drive: Drive) => (
<DriveSummaryComponent
key={drive.id}
imageUrl={drive.imageUrl}
brand={drive.brand}
model={drive.model}
isShuckable={drive.isShuckable}
/>
))}
</Container>
);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, you would want to show a loading here if loaded is not true

import styled from 'styled-components';
import { Box } from 'view/component/generic/box-component';

export const Column = styled(Box)`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants