Skip to content

Commit

Permalink
chore(edit): renamed footer files
Browse files Browse the repository at this point in the history
  • Loading branch information
vildeopp committed Jul 4, 2023
1 parent d38fb36 commit 2c34f63
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion next-tavla/pages/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getBoardSettings } from 'utils/firebase'
import classes from 'styles/pages/board.module.css'
import { convertSettingsVersion } from 'utils/converters'
import { Board } from 'Board/scenarios/Board'
import { FooterText } from 'Board/scenarios/FooterText'
import { FooterText } from 'Board/scenarios/Footer'

export async function getServerSideProps({
params,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TextField } from '@entur/form'
import { useSettingsDispatch } from 'Admin/utils/contexts'
import classes from './styles.module.css'

function FooterTextInput({ footer = '' }: { footer?: string }) {
function FooterInput({ footer }: { footer?: string }) {
const dispatch = useSettingsDispatch()

return (
Expand All @@ -24,9 +24,9 @@ function FooterTextInput({ footer = '' }: { footer?: string }) {
footer: '',
})
}
></TextField>
/>
</div>
)
}

export { FooterTextInput }
export { FooterInput }
4 changes: 2 additions & 2 deletions next-tavla/src/Admin/scenarios/Edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ToastProvider } from '@entur/alert'
import { CopyText } from 'Admin/components/CopyText'
import { PrimaryButton } from '@entur/button'
import { StyledLink } from 'Admin/components/StyledLink'
import { FooterTextInput } from 'Admin/components/FooterTextInput'
import { FooterInput } from 'Admin/components/FooterInput'
import { TavlaButton } from 'Admin/components/Button'

function Edit({
Expand All @@ -33,7 +33,7 @@ function Edit({
<ThemeSettings theme={settings.theme} />
<AddTile />
<TilesSettings tiles={settings.tiles} />
<FooterTextInput footer={settings.footer} />
<FooterInput footer={settings.footer} />
<TavlaButton
onClick={() => {
setBoardSettings(documentId, settings)
Expand Down

0 comments on commit 2c34f63

Please sign in to comment.