Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
tyugfhdfasf authored Nov 26, 2024
1 parent dc8d2cc commit e0c963a
Show file tree
Hide file tree
Showing 100 changed files with 7,212 additions and 0 deletions.
24 changes: 24 additions & 0 deletions assets/scss/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
height: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

body {
background-color: #f4f6f8;
height: 100%;
}

a {
text-decoration: none;
}

#root {
height: 100%;
}
9 changes: 9 additions & 0 deletions common/validators.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const checked = (value, options) => {
if (value !== true) {
return options.message || 'must be checked';
}
};

export default {
checked
};
26 changes: 26 additions & 0 deletions components/RouteWithLayout/RouteWithLayout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import { Route } from 'react-router-dom';
import PropTypes from 'prop-types';

const RouteWithLayout = props => {
const { layout: Layout, component: Component, ...rest } = props;

return (
<Route
{...rest}
render={matchProps => (
<Layout>
<Component {...matchProps} />
</Layout>
)}
/>
);
};

RouteWithLayout.propTypes = {
component: PropTypes.any.isRequired,
layout: PropTypes.any.isRequired,
path: PropTypes.string
};

export default RouteWithLayout;
1 change: 1 addition & 0 deletions components/RouteWithLayout/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './RouteWithLayout';
1 change: 1 addition & 0 deletions components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as RouteWithLayout } from "./RouteWithLayout";
Loading

0 comments on commit e0c963a

Please sign in to comment.