Skip to content

Commit

Permalink
change navigate to href in routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rost-is-love committed Jul 6, 2023
1 parent be719ad commit dd3cd2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/apps/mega-ui/src/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Layout = ({ children }: { children: ReactElement }) => {
</Navbar.Brand>
<Navbar.Content variant='underline'>
<Navbar.Link
onClick={() => navigate('/phr')}
href='/phr'
isActive={pathName === '/phr'}
>
PHR
Expand All @@ -48,13 +48,13 @@ export const Layout = ({ children }: { children: ReactElement }) => {
Complex Query
</Navbar.Link> */}
<Navbar.Link
onClick={() => navigate('/subscriptions')}
href='/subscriptions'
isActive={pathName === '/subscriptions'}
>
Aidbox Subscriptions
</Navbar.Link>
<Navbar.Link
onClick={() => navigate('/workflow')}
href='/workflow'
isActive={pathName === '/workflow'}
>
Aidbox Workflow
Expand Down
2 changes: 1 addition & 1 deletion examples/apps/workflow-ui/src/Tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export const Tasks = ({ appointmentId, config }: TasksProps) => {

useEffect(() => {
socketIo.on('start_task', function (data) {
setTimeout(() => getTasks(data), 1700)
setTimeout(() => getTasks(data), 1000)
})

socketIo.on('sent_email', function () {
Expand Down

0 comments on commit dd3cd2f

Please sign in to comment.