Skip to content

Commit

Permalink
style: rename LocalTreeModal to TreeSelectionModal
Browse files Browse the repository at this point in the history
  • Loading branch information
orlinmalkja committed Jan 31, 2025
1 parent f7ad3f4 commit 7f9b8a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
23 changes: 12 additions & 11 deletions src/components/TopBar.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import { FC } from 'react'


import LocalTreeModal from '@/components/LocalTreeModal'
import TreeSelectionModal from '@/components/TreeSelectionModal'

const TopBar: FC = () => {

const addButton =
<span className="t-bg-blue-500 t-text-white t-rounded t-flex t-pl-4 t-items-center t-justify-items-center t-w-16 t-h-10">

const addButton =
<span
className="t-bg-blue-500 t-text-white t-rounded t-flex t-pl-4 t-items-center t-justify-items-center t-w-16 t-h-10">
New
</span>

</span>


return <div className="t-flex t-flex-row t-ml-[6%] t-mt-10">
<TreeSelectionModal TriggerButton={addButton}/>
</div>

return <div className="t-flex t-flex-row t-ml-[6%] t-mt-10">
<LocalTreeModal TriggerButton={addButton} />
</div>

}

export default TopBar
export default TopBar
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface LocalTreeProps {
TriggerButton: ReactNode
}

const LocalTreeModal: FC<LocalTreeProps> = ({ TriggerButton }) => {
const TreeSelectionModal: FC<LocalTreeProps> = ({ TriggerButton }) => {


return <div className="local-tree-modal">
Expand All @@ -22,4 +22,4 @@ const LocalTreeModal: FC<LocalTreeProps> = ({ TriggerButton }) => {
</div>
}

export default LocalTreeModal
export default TreeSelectionModal

0 comments on commit 7f9b8a4

Please sign in to comment.