Skip to content

Commit

Permalink
Merge pull request #5765 from marmelab/demo-css
Browse files Browse the repository at this point in the history
Fix demo doesn't need a CSS preprocessor
  • Loading branch information
djhi authored Jan 13, 2021
2 parents 2b7b6f5 + c0ab59d commit fe1247e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 39 deletions.
5 changes: 2 additions & 3 deletions examples/data-generator/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
export default (db, { serializeDate }) => {
const today = new Date();
const aMonthAgo = subDays(today, 30);
const realCustomers = db.customers.filter(customer => customer.has_ordered);

return Array.from(Array(600).keys()).map(id => {
const nbProducts = weightedArrayElement(
Expand All @@ -35,9 +36,7 @@ export default (db, { serializeDate }) => {
const taxes = parseFloat(
((total_ex_taxes + delivery_fees) * tax_rate).toFixed(2)
);
const customer = random.arrayElement(
db.customers.filter(customer => customer.has_ordered)
);
const customer = random.arrayElement(realCustomers);
const date = randomDate(customer.first_seen, customer.last_seen);

const status =
Expand Down
6 changes: 6 additions & 0 deletions examples/demo/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
-->
<title>Posters Galore Administration</title>
<style>
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}

.loader-container {
display: flex;
align-items: center;
Expand Down
28 changes: 0 additions & 28 deletions examples/demo/src/App.css

This file was deleted.

2 changes: 0 additions & 2 deletions examples/demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { useState, useEffect } from 'react';
import { Admin, Resource, DataProvider } from 'react-admin';
import polyglotI18nProvider from 'ra-i18n-polyglot';

import './App.css';

import authProvider from './authProvider';
import themeReducer from './themeReducer';
import { Login, Layout } from './layout';
Expand Down
5 changes: 0 additions & 5 deletions examples/demo/src/index.css

This file was deleted.

1 change: 0 additions & 1 deletion examples/demo/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ import 'proxy-polyfill';
import * as React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';

ReactDOM.render(<App />, document.getElementById('root'));

0 comments on commit fe1247e

Please sign in to comment.