Skip to content

Commit

Permalink
Move custom tag list demo to last in example page
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Jun 17, 2024
1 parent fb121f4 commit f493cde
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions example/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ <h2>Examples</h2>
<div id="demo-1"></div>
</section>
<hr />
<section>
<h3>Custom tag list</h3>
<div id="demo-0"></div>
</section>
<hr />
<section>
<h3>Custom tags</h3>
<div id="demo-2"></div>
Expand All @@ -156,6 +151,11 @@ <h3>Using the API</h3>
<div id="demo-5"></div>
</section>
<hr />
<section>
<h3>Custom tag list component</h3>
<div id="demo-6"></div>
</section>
<hr />
<section>
<h2>Documentation</h2>
<p>
Expand Down
12 changes: 6 additions & 6 deletions example/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import { CustomTags } from './demos/CustomTags'
import { CustomTagList } from './demos/CustomTagList'
import { CountrySelector } from './demos/CountrySelector'
import { CustomTags } from './demos/CustomTags'
import { CustomValidity } from './demos/CustomValidity'
import { UsingTheAPI } from './demos/UsingTheAPI'
import { AsyncSuggestions } from './demos/AsyncSuggestions'
import { UsingTheAPI } from './demos/UsingTheAPI'
import { CustomTagList } from './demos/CustomTagList'

// HACK: Wait for onload to ensure styles are loaded due to a bug with Safari
// <https://github.com/i-like-robots/react-tag-autocomplete/issues/44>
window.onload = () => {
const container0 = ReactDOM.createRoot(document.getElementById('demo-0'))
container0.render(<CustomTagList />)

const container1 = ReactDOM.createRoot(document.getElementById('demo-1'))
container1.render(<CountrySelector />)

Expand All @@ -27,4 +24,7 @@ window.onload = () => {

const container5 = ReactDOM.createRoot(document.getElementById('demo-5'))
container5.render(<UsingTheAPI />)

const container6 = ReactDOM.createRoot(document.getElementById('demo-6'))
container6.render(<CustomTagList />)
}

0 comments on commit f493cde

Please sign in to comment.