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

Commit

Permalink
fix(Gallery): Use local assets
Browse files Browse the repository at this point in the history
The gallery page used online assets instead of local assets
  • Loading branch information
Greg-Hamel committed Nov 11, 2018
1 parent ca465f7 commit cdbecc8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 39 deletions.
60 changes: 24 additions & 36 deletions example/src/data/Gallery.Items.json
Original file line number Diff line number Diff line change
@@ -1,108 +1,96 @@
{
"items": [
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/grant-ritchie-338179-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/male/41.jpg",
"imageURL": "demo/photos/grant-ritchie-338179-500.jpg",
"avatarURL": "demo/faces/male/41.jpg",
"fullName": "Nathan Guerrero",
"dateString": "12 days ago",
"totalView": 112,
"totalLike": 42
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/ilnur-kalimullin-218996-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/female/1.jpg",
"imageURL": "demo/photos/ilnur-kalimullin-218996-500.jpg",
"avatarURL": "demo/faces/female/1.jpg",
"fullName": "Alice Mason",
"dateString": "12 days ago",
"totalView": 70,
"totalLike": 0
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/jakob-owens-224352-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/female/18.jpg",
"imageURL": "demo/photos/jakob-owens-224352-500.jpg",
"avatarURL": "demo/faces/female/18.jpg",
"fullName": "Rose Bradley",
"dateString": "4 days ago",
"totalView": 166,
"totalLike": 96
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/jeremy-bishop-330225-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/male/16.jpg",
"imageURL": "demo/photos/jeremy-bishop-330225-500.jpg",
"avatarURL": "demo/faces/male/16.jpg",
"fullName": "Peter Richards",
"dateString": "18 days ago",
"totalView": 76,
"totalLike": 6
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/jonatan-pie-226191-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/male/26.jpg",
"imageURL": "demo/photos/jonatan-pie-226191-500.jpg",
"avatarURL": "demo/faces/male/26.jpg",
"fullName": "Wayne Holland",
"dateString": "16 days ago",
"totalView": 106,
"totalLike": 36
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/josh-calabrese-66153-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/female/7.jpg",
"imageURL": "demo/photos/josh-calabrese-66153-500.jpg",
"avatarURL": "demo/faces/female/7.jpg",
"fullName": "Michelle Ross",
"dateString": "4 days ago",
"totalView": 77,
"totalLike": 7
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/joshua-earle-157231-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/female/17.jpg",
"imageURL": "demo/photos/joshua-earle-157231-500.jpg",
"avatarURL": "demo/faces/female/17.jpg",
"fullName": "Debra Beck",
"dateString": "6 days ago",
"totalView": 150,
"totalLike": 80
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/mahkeo-222765-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/male/30.jpg",
"imageURL": "demo/photos/mahkeo-222765-500.jpg",
"avatarURL": "demo/faces/male/30.jpg",
"fullName": "Phillip Peters",
"dateString": "17 days ago",
"totalView": 153,
"totalLike": 83
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/matt-barrett-339981-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/male/32.jpg",
"imageURL": "demo/photos/matt-barrett-339981-500.jpg",
"avatarURL": "demo/faces/male/32.jpg",
"fullName": "Jack Ruiz",
"dateString": "15 days ago",
"totalView": 143,
"totalLike": 73
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/nathan-anderson-297460-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/male/9.jpg",
"imageURL": "demo/photos/nathan-anderson-297460-500.jpg",
"avatarURL": "demo/faces/male/9.jpg",
"fullName": "Ronald Bradley",
"dateString": "11 days ago",
"totalView": 149,
"totalLike": 79
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/nathan-anderson-316188-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/female/8.jpg",
"imageURL": "demo/photos/nathan-anderson-316188-500.jpg",
"avatarURL": "demo/faces/female/8.jpg",
"fullName": "Kathleen Harper",
"dateString": "16 days ago",
"totalView": 164,
"totalLike": 94
},
{
"imageURL":
"https://tabler.github.io/tabler/demo/photos/nathan-dumlao-287713-500.jpg",
"avatarURL": "https://tabler.github.io/tabler/demo/faces/male/4.jpg",
"imageURL": "demo/photos/nathan-dumlao-287713-500.jpg",
"avatarURL": "demo/faces/male/4.jpg",
"fullName": "Bobby Knight",
"dateString": "6 days ago",
"totalView": 160,
Expand Down
3 changes: 0 additions & 3 deletions src/components/Button/Button.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,16 @@ const Button = (props: Props): React.Node => {
);
} else if (props.RootComponent === "input") {
const { type, value } = props;

return <input {...propsForAll} type={type} value={value} ref={rootRef} />;
} else if (props.RootComponent === "a") {
const { href, target } = props;

return (
<a {...propsForAll} href={href} target={target} ref={rootRef}>
{childrenForAll}
</a>
);
} else {
const Component: React.ElementType = props.RootComponent;

return (
<Component {...propsForAll} to={to}>
{childrenForAll}
Expand Down

0 comments on commit cdbecc8

Please sign in to comment.